I have a report using a native Btrieve connection (PSQL version 10 summit) which works fine. However when I automate it with the following code
ReportDocument reportDoc = new ReportDocument(); reportDoc.Load("C:\\CReports\\demodata_direct.rpt", OpenReportMethod.OpenReportByTempCopy); reportDoc.Refresh(); // reportDoc.VerifyDatabase(); reportDoc.PrintToPrinter(1,false,1,1);
I get the exception message
Error in File demodata_direct {785C262E-1F71-431C-9A29-53349641C461}.rpt:
The table could not be found.
If I uncomment the VerifyDatabase line I get an empty report (No headings even)
I'm new to the SDK and I guess I'm doing (or not doing) something obvious.
Any takers?
TIA