Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

SAP Crystal Reports 2011 and Visual Studio 2013

$
0
0

I am creating a Visual BASIC .Net windows application in Visual Studio 2013.

 

The application sets up a connection, command, command builder, and Data Adapter to connect to an Oracle database to fill data into a Dataset.

 

All the that works great but the problem I am running into is with trying to run a Crystal Report with the Dataset.

 

I have set up a Crystal Report to use the dataset in SAP Crystal Reports 2011.

 

The Visual Basic .Net application is not using the Crystal Report Viewer.  It is using the Report Document class to export the report to a PDF and/or Excel file.  SAP Crystal Reports for Visual Studio has been installed.

 

At first I ran into a problem where I got an exception error "Could not load" message regarding the crdb_adoplus.dll when the following line of code is executed:

 

reportDocument1.SetDataSource(ds)

 

I was not able to find crdb_adoplus.dll on my system so I found a place I could download it.  I have put the .DLL in the directory the error message was referring to.  Still got the error.

 

Then I found an old 2009 discussion on here about someone having the same error.  In that discussion, Ludek was helping them.  One of the things that Ludek mentioned to try doing was placing the .DLL in the bin folder for the Visual Studio project.  I have tried that and still did not work.  Then I copied the .DLL to the Debug folder under the bin folder.  Now that statement works but got a Database logon failed error message when the following line code is executed:

 

reportDocument1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\Users\Public\Documents\Novelis870TransactionReport4.pdf")

 

I am using reportDocument1.SetDatabaseLogon statement with the correct User Id and Password for the database but still keep getting the Database logon failed error.

 

I know the Dataset (ds) is working because I can use that as the data source for a DataGridView.

 

What needs to be done to resolve this issue?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>