on 04-09-2012 11:27 PM
Hello,
I am receiving an error trying to export a report a current report i have to the c: drive of my computer.
Im using visual studios to run the command to export the report
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load("c:\\rptMACWorkOrder.rpt");
cryRpt.SetDatabaseLogon("XXX", "XXXX");
i am setting my parameters through
cryRpt.SetParameterValue(1, "0");
and at the end i use
cryRpt.SetDatabaseLogon("XXX", "XXX", "localhost", "Password");
cryRpt.ExportToDisk(ExportFormatType.PortableDocFormat, @"C:\report.pdf");
once i execute the command i recieve this error and i have no idea what could be causing it or why its being generated.
Failed to load database information.
Details: The database DLL 'crdb_com.dll' could not be loaded.
Error in File C:\Users\XXX\AppData\Local\Temp\rptMACWorkOrder {05EB7D4A-6A53-4C9D-BC0A-153361749AEA}.rpt:
Failed to load database information.
Any information on it would be great. thanks in advanced!!
-stephen
What version of CR are you using in the app?
What version of CR was the report created in?
next, open the report in the designer then go to the Database menu and select "Set Datasource Location". Expand the "Properties" node. What do you see here?
- Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.