Ok im running Delphi 5, SQL2000 back end, Windows2000 professional crystal reports 8.5. 256MB Ram 770mhz machine. I think that im running out of resources while trying to run the report.
I have a test application which runs the report with the following lines of code. (which is bascally the whole application just to see if the report will open up and it does).
cu:=tcrystalunit.create;
cu.preview('Report1.rpt',SQLString);
cu.free;
...
Crpe1.ReportName := Report1.rpt;
Crpe1.ConnectMethod := useConnect;
myquery1.sql.text := sqlString;
myquery1.open;
Crpe1.DiscardSavedData := True;
Crpe1.Tables.Retrieve; //Error occurs here
Crpe1.Tables[0].DataPointer := @myquery1.recordset;
My development application is about 7MB its pretty big but when i run the above code i get the following error
Error 512: Print engine not opened.
OpenPrintEngine <PEOpenEngine>
Its exactly the same code does anyone have any idea why it would work in one application and not the other.
Thanks Craig.
I have a test application which runs the report with the following lines of code. (which is bascally the whole application just to see if the report will open up and it does).
cu:=tcrystalunit.create;
cu.preview('Report1.rpt',SQLString);
cu.free;
...
Crpe1.ReportName := Report1.rpt;
Crpe1.ConnectMethod := useConnect;
myquery1.sql.text := sqlString;
myquery1.open;
Crpe1.DiscardSavedData := True;
Crpe1.Tables.Retrieve; //Error occurs here
Crpe1.Tables[0].DataPointer := @myquery1.recordset;
My development application is about 7MB its pretty big but when i run the above code i get the following error
Error 512: Print engine not opened.
OpenPrintEngine <PEOpenEngine>
Its exactly the same code does anyone have any idea why it would work in one application and not the other.
Thanks Craig.