|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello, any body can tell me how can I do for generate dynamics crystal reports from an ASP application?
My application generate dynamically queries to a DB and returns de data into a XML format. I have an infinite number of possible responses, and for this reason I can’t define one repot for each possible response. So, I need generate an RPT file dynamically. Thanks |
|
#2
|
|||
|
|||
|
This code might be usefull for you
' Determine the index of the table we want to retrieve indexTable = Session("oClientDoc").Database.Tables.FindByAlias("Employee") ' Retrieve the data fields from the Database Table ' Set dbFields = Session("oClientDoc").Database.Tables.Item(0).DataFields Set dbFields = Session("oClientDoc").Database.Tables.Item(indexTable).DataFields ' Create a list of the fields we want to add to the report arrFields = Array("Last Name", "First Name", "Salary") For Each newField in arrFields 'Determine the index of the database field in the table indexField = dbFields.Find(newField, 0) ' Add the field to the client document through the ResultFieldContoller object ' -1 specifies to add the field to the end of the ResultFields collection Session("oClientDoc").DataDefController.ResultFieldController.Add -1, dbFields.Item(indexField) Next |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Crystal Report help please !!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|