Problem in linking MDB filename path to RPT file
Hi,
I require some help regarding crystal reports. I am using crystal reports 10.0 developers version in VC++ application.
I am using RDC(Report designer component that is craxdrt.dll) for programming which comes along with Crystal reports.
I am using MS Access 2000 as the database.
I have a requirement to provide MDB file name and Table name to the report file at run time.
I see another API to provide datasource. I call it as follows:
m_Report->Database->SetDatasource("MDB File name and path" ) .
Next I call API to set table name
m_Report->Database->Tables->GetItem(1)->PutLocation("TableName")
I get an exception message "'TableName' not found" eventhough that table is present in MDB file.
If anybody have some idea regarding the above mentioned problem, please reply. I am struggling with this problem since one week. Please help
Re: Problem in linking MDB filename path to RPT file
Test reply, please ignore