I have a Foxpro database called "Tesoreria". I'm making an Vb6 Application, but that application needs a report from a Tesoreria's temporary table (that's where Crysta Reports goes). I have created a Stored Procedure on VFoxPro to create that table, and another to delete that table (from database and from hard disk).
First I call that stored procedure from VisualBasic (using an Ado Connection object), after that I load the report. it works. the problem comes when i close the report and call the stored procedure to delet the table. I get an error when the instruction to delete the table is executed. It seems that the object CrViewer doesnt close the connection even when I destroy the object using "Set CrViewerObjectName = Nothing", even when i close the Form contining the CrviewerObject.
The detete procedure only works if I unload the Aplication and call the Stored Procedure to delete that table or after 16 minutes of waitting before execute the Delete procedure after unload the form with the Crviewer. The Store data with repot propierty is disabeled on my CR9 file.
Is any way to delete that table from database and hard disk just after the Cristal Report file unloads?
I can sent the source code of the vb form that loads the Crystal Report file, the stored procedure on FoxPro. Please help me!