AV when Freeing ppReporter form
We are having an issue freeing the ppReport form after printing to the
screen. We have tried using .Cancel before freeing the form as per a
pervious post and this is making no difference. I understand this could be a
timing issue - the code seems to AV within the TppRelative class - when
performing actions with FChildren.
We are using PrintToDevices and printing to a TppViewer component on the
form.
It there anyway around this?
Any help would be really helpful.
screen. We have tried using .Cancel before freeing the form as per a
pervious post and this is making no difference. I understand this could be a
timing issue - the code seems to AV within the TppRelative class - when
performing actions with FChildren.
We are using PrintToDevices and printing to a TppViewer component on the
form.
It there anyway around this?
Any help would be really helpful.
This discussion has been closed.
Comments
Ed Dressel
Team DM
the full OnDestroy event handler for the form and AV's liek I've said within
the TppRelv. class
--
Ed Dressel
Team DM
I just sent a sample application to support.
Thanks,
Paul
Make sure that the Report.Print call has exited and then you should be able
to safely free the report.
try
Report.Print;
finally
CloseTheForm;
end;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
But that will only work if the preview is modal. In an MDI application what
happens if the user wants to run two reports at the same time?
I sent a sample application to support to show what I'm trying to do.
Thanks again!
Paul Klomp