cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect to a different XML?

Former Member
0 Kudos
47

<p>Hello all</p><p> I&#39;m trying to connect to a different XML file using Crystal Reports XI and a Desktop .net application. </p><p>Any Ideas?</p><p> PS: Native XML. </p><p> Thanks in advance</p>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

one possibility is to use datasets.

Simply read different XML datasources to the dataset and pass it to the report.

Please see samples on our diamond community site under :

https://boc.sdn.sap.com/dotnet

former_member183750
Active Contributor
0 Kudos

Your code would look something like this:

'explicitly set the table:

crReportDocument.Database.Tables(0).SetDataSource(dataSet.Tables("NAME_OF_TABLE"))

'implicitly set the table

crReportDocument.SetDataSource(dataSet)

Answers (0)