Skip to Content
0
Former Member
Dec 16, 2008 at 02:46 PM

Btrieve Native Connection and Crystal 2008 .NET SDK Error Table Not Found

17 Views

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