Skip to Content

Error setting ReportDocument.SetDataSource with Dataset

I'm using Visual Basic 2015 (Visual Studio 2015 Professional) and SAP Crystal Report for Visual Studio SP16.

To send dynamically data from ADODB.Recordset to Report I'm setting ReportDocument.SetDataSource property with a Dataset, the same of the Report DataSource (generated with Dataset.WriteXML):

This solution work correctly in VS2008.

The cryRpt.SetDataSource setting generate the following Error: Unable to load the database information


Attached Report DataSource Image and XML Dataset.

Thanks for help.

Immagine3.png (28.5 kB)
Reti1.xml (7.3 kB)
Immagine1.png (22.5 kB)
Immagine2.png (4.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 11, 2016 at 01:27 PM

    No reason to call the .refresh, that refreshes the report with the original data source which would cause the database connection error.

    If I create a new report off the attached xml fiile it works fiine. Could be your original report does not match the xml file.

    Don

    Add comment
    10|10000 characters needed characters exceeded