Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintEngine not opened in Delphi

Status
Not open for further replies.

Craigs

Programmer
May 1, 2001
19
0
0
AU
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top