Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Access Violation when Cancedling Report

edited April 2005 in General
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

Comments

  • edited April 2005
    I also reproduced this IF I print a report to a PDF with the print dialog.

    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




  • edited April 2005
    Hi 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Austin,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.