Access Violation when Cancedling Report
Hi,
I have a long report, printing directly to PDF. If I cancel the report as
it is generating I get an access violation error if I try to print anything
again. Even if it is to the print dialog??
My code setting up direct printing to PDF is:
If FileExists(gblPDFFileName) then DeleteFile(gblPDFFileName);
myReport.DeviceType:='PDF';
myReport.TextFileName:= gblPDFFileName;
myReport.ShowPrintDialog:=False;
Austin
I have a long report, printing directly to PDF. If I cancel the report as
it is generating I get an access violation error if I try to print anything
again. Even if it is to the print dialog??
My code setting up direct printing to PDF is:
If FileExists(gblPDFFileName) then DeleteFile(gblPDFFileName);
myReport.DeviceType:='PDF';
myReport.TextFileName:= gblPDFFileName;
myReport.ShowPrintDialog:=False;
Austin
This discussion has been closed.
Comments
It looks like the cancel dialog does not properly close the print file, and
when you try to use it again you get the error.
Austin
Thanks for the info. I am currently researching this and will get back to
you as soon as I find a solution. Thanks for your patience.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
There is now a patch available that fixes this issue. Please send a request
to support@digital-metaphors.com and we will send it to you asap. Thanks
again for your patience.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com