Skip to Content
0
Former Member
Jun 10, 2009 at 03:35 PM

SetDatasource

42 Views

I have created a new report using the XML and WebServices connection. I pointed to a local XML file as well as XSD file. I added a few fields to the report for testing and reviewed the report.

So far so good. At runtime I am creating a Dataset using the ReadXML METHOD (reading from file on disk) and then use SetDatasource. The data displayed in the report is always the data from the XML I used when designing the report.

Now if I use an ADO.NET XML then the above scenario works just fine. I would prefer to use the XML and WebServices connection since you can reference a schema. With the ADO.NET all my fields are strings in Crystal.

Am I missing something or is this possible? We did something similar using RDC a while back where we changed the Datasource at runtime.

Any help would be appreciated.