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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I close Main Form of Delphy - the Report is open

Status
Not open for further replies.

SAWIACH

ISP
Dec 1, 2003
13
BY
I execute the CristalReport from Delphy-Form (suppose with name Forma1), but if I shall close the form Forma1 earlier than the CristalReport I receive the message of the following contents:
Error:112 No ReportName assigned.
In Delphy I use TCrpe for connection to CrystalReports.
What should I make in Delphy to avoid the given message(mistake)?

Thanks in advance.
Alex, splender@mail.ru

P.S. Sorry for my English.
 
I would explicitly close the TCrpe preview form as part of your form's OnClose event handler. Another option would be to explicitly free the TCrpe component in the OnClose. The trick is to make sure that the report form is closed before the components that "feed" it data are destroyed.

I don't have the TCrpe component installed here at work, so I can't check the methods and such, but hopefully this will point you in the right direction.

-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top