Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Changing data provider of a report when using the CrystalReportViewer

I'm trying to dynamically change the data source, connection information, and data provider of a Crystal Report at runtime.

I'm using Crystal v10, VB.NET 2.0, Visual Studio 2005, Pervasive 9.6

I began with a report configured using a btrieve/DDF connection and after a while I managed to get it running on the CrystalReportViewer with an ODBC connection. (Thanks to this forum, cheers!)

Now I'm trying to do this same task at runtime and it seems that no combination of ApplyLogOnInfo() trickery will do it. The loaded ReportDocument just refuses to take the changes and tries to open using it's original connection information and crashes.

I've used the ApplyLogOnInfo() Tutorial Sample successfully with SQL server, but Pervasive isn't having it.

Not what you were looking for? View more on this topic or Ask a question