Quickreport forum
Go to Quickreport website
Welcome Guest Search | Active Topics | Log In | Register

PDF Export periodically fails [solved]
Electris
#1 Posted : 14 May 2018 13:24:20(UTC)
Rank: Newbie

Groups: Registered
Joined: 14/05/2018(UTC)
Posts: 3
Location: Luxembourg

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,
We do have a Delphi 64bit Application with several dynamic QR5 Reports.
We show the report with the buildin - Preview to the user.
Print Out is working always.
On each report we do have a QRPDFFilter Element.

Export to PDF does work, than suddently stop working until we exchange the application exe (without new compiling).

If it works the SaveDialog shows as possible Filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)
- PDF document (*.PDF)

If it suddently not working, it shows only two filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)

In the second case (not working) it seems to save (no error message), but there is no file on the filesystem.
It is not working on network folders as well as on local paths.

Sometimes it seem to work for some days, but then suddently finishes.
Sometimes exchanging the .exe of the application is also not helping, than we hope that it works after a reboot.

All together this functionality is quite unstable, it worked in earlier versions better (but we had to update due to other bug fixings).

We would upgrade to Version 6 if we could be sure, that it would work.
Is version 6 down - compatible or do we have to redesign all reports?
Regards,
Christoph Weidmann
Electris
Electris
#2 Posted : 15 May 2018 06:43:50(UTC)
Rank: Newbie

Groups: Registered
Joined: 14/05/2018(UTC)
Posts: 3
Location: Luxembourg

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Electris wrote:
Hi,
We do have a Delphi 64bit Application with several dynamic QR5 Reports.
We show the report with the buildin - Preview to the user.
Print Out is working always.
On each report we do have a QRPDFFilter Element.

Export to PDF does work, than suddently stop working until we exchange the application exe (without new compiling).

If it works the SaveDialog shows as possible Filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)
- PDF document (*.PDF)

If it suddently not working, it shows only two filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)

In the second case (not working) it seems to save (no error message), but there is no file on the filesystem.
It is not working on network folders as well as on local paths.

Sometimes it seem to work for some days, but then suddently finishes.
Sometimes exchanging the .exe of the application is also not helping, than we hope that it works after a reboot.

All together this functionality is quite unstable, it worked in earlier versions better (but we had to update due to other bug fixings).

We would upgrade to Version 6 if we could be sure, that it would work.
Is version 6 down - compatible or do we have to redesign all reports?
Regards,
Christoph Weidmann
Electris


Some further tests: The save does always work on the first try, and always fails on the second.
Seems that the preview is missing something.
The pdf-Filter on the form is freed and nil on close of the form. Should it stay in memory?
The same report is called 5.000 times on another task - there we did have a memory leak, thats why we FreeAndNil the filter.
Does someone has any idea?

Electris
#3 Posted : 15 May 2018 07:24:11(UTC)
Rank: Newbie

Groups: Registered
Joined: 14/05/2018(UTC)
Posts: 3
Location: Luxembourg

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Electris wrote:
Hi,
We do have a Delphi 64bit Application with several dynamic QR5 Reports.
We show the report with the buildin - Preview to the user.
Print Out is working always.
On each report we do have a QRPDFFilter Element.

Export to PDF does work, than suddently stop working until we exchange the application exe (without new compiling).

If it works the SaveDialog shows as possible Filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)
- PDF document (*.PDF)

If it suddently not working, it shows only two filetypes:
- *.PDF (Default)
- QuickReport file (*.QRP)

In the second case (not working) it seems to save (no error message), but there is no file on the filesystem.
It is not working on network folders as well as on local paths.

Sometimes it seem to work for some days, but then suddently finishes.
Sometimes exchanging the .exe of the application is also not helping, than we hope that it works after a reboot.

All together this functionality is quite unstable, it worked in earlier versions better (but we had to update due to other bug fixings).

We would upgrade to Version 6 if we could be sure, that it would work.
Is version 6 down - compatible or do we have to redesign all reports?
Regards,
Christoph Weidmann
Electris

Some further tests: The save does always work on the first try, and always fails on the second.
Seems that the preview is missing something.
The pdf-Filter on the form is freed and nil on close of the form. Should it stay in memory?
The same report is called 5.000 times on another task - there we did have a memory leak, thats why we FreeAndNil the filter.
Does someone has any idea?



FOUND IT:
Code:

    QRPDFFilter1.Free;
    QRPDFFilter1 := nil;

was the reason for the strange behavior.
You should not free the PDFFilter Instance.

I will now have to test if the heavy use of the report generates a memory leak, but this problem is solved by commenting out the two lines.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.033 seconds.