We used to use reports that used ADO XML dataset, and in VB 6 we easily told the report which XML file to use by:
Dim objCRReport As CRAXDRT.Report
Set objCRReport = objCRApplication.OpenReport(App.path & "\crystal\" + rptName)
objCRReport.DiscardSavedData
objCRReport.Database.Tables.Item(1).Location = xmlFile
where xmlFile was the fully qualified path to the xml data to pass to the report.
Now we are trying to do this with a new report which uses a XML Native driver as its connection method. In VB6, how can we pass different xml files to use?
We looked at objCRReport.Database.SetDataSource, but it expects some parameters that I don't understand ( data , { data type } , { table number } )
Is there an example anywhere of how to switch your datasource in code while using the XML Native Driver?