Report PDF export function does not work HMG 3.3.1

Moderator: Rathinagiri

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Report PDF export function does not work HMG 3.3.1

Post by trmpluym » Sun Aug 10, 2014 12:29 pm

When using the PDF export function with large reports (more then 18 pages) the export failes with the message:

image cannot be loaded

The error can be reproduced using the default sample and a larger test.dbf (see attachement):

c:\hmg.3.3.0\SAMPLES\PrintSystem

When using the JPG export not all pages are exported and the last exported page is black.
Attachments
test.zip
(4.8 KiB) Downloaded 85 times

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Wed Feb 04, 2015 8:10 pm

Still no solution in version hmg.3.4.0 ?

EduardoLuis
Posts: 484
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Been thanked: 21 times

Post by EduardoLuis » Wed Feb 04, 2015 9:17 pm

Hi trmpluyn:

I test your dbf and works ok with Printsystem.
It creates exactly 36 pages without troubles in PDF format.-
Next time put the code, not only table.-
With regards.
Eduardo

franco
Posts: 183
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Wed Feb 04, 2015 10:00 pm

Can you help me,
I have not used pdf, but I thought I seen somewhere that by changing the Extension of file name to .pdf it would create a pdf.
I have just' been using .txt and setting the printer to file name. This works very well but when sending the file in a email link I have to explain
how to set up notepad or internet explorer to print the file properly.
I tried just changing the extension but adobe says wrong format. I read up on the examples and some previous submissions but most are
quite confusing. Is there a simple way to start like:
function printfil
set printer to fil.pdf
set device to printer
@ 1,5 say 'Hello to all: "
more lines of print
set device to screen
set printer to
return
I thought this would be a good place to get advice instead of new post, as in this post members will know what I am asking.
Thanks in advance Franco

User avatar
Rathinagiri
Posts: 5095
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 93 times
Been thanked: 106 times
Contact:

Post by Rathinagiri » Thu Feb 05, 2015 5:01 am

PDF export from HMG PrintSystem is just saving the print page(s) as image(s) inside a PDF. So, it is not advisable for reports having many pages. Instead we can use the print to pdf as in HMG 3.4.0.

However, Marek had found that printing lines in printsystem is different from PDF. That I think we have to resolve in the next version.

Unlike pure Text Printing system, PDF/Windows printing requires some basic parameters like page size, margin, font name, size etc., The fonts are having dynamic widths unless you have a fixed width font. IMHO, without compromising any features, HMG print system is so designed by Roberto as simple as it is.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
mol
Posts: 2740
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 91 times
Been thanked: 31 times
Contact:

Post by mol » Thu Feb 05, 2015 7:02 am

I've posted quick solution to resolve compatibility problem....

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Sat Feb 14, 2015 4:20 pm

@Rathinagiri and Marek : thanks in advance, i wait for the next version !

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Mon Feb 29, 2016 7:37 am

I was hoping this problem was allready resolved in HMG 3.4.2 but it is still there.

You can test it yourselves whith the example and the DBF in the first post:

c:\hmg.3.4.2\SAMPLES\PrintSystem

To make it easyer to replicate the issue i attached the whole demo with the dbf.

After running the demo and choosing a printer the report looks fine, but when i press:
2016-02-29 08_34_08-Page [1_36-2].png
2016-02-29 08_34_08-Page [1_36-2].png (1.08 KiB) Viewed 732 times
and choose a PDF file name, the error is:
2016-02-29 08_27_25-Page [1_36].png
2016-02-29 08_27_25-Page [1_36].png (15.87 KiB) Viewed 732 times
I hope Marek knows the solution so a patch can be made.
Attachments
PrintSystem.zip
(10.09 KiB) Downloaded 35 times

trmpluym
Posts: 190
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Sun Mar 13, 2016 10:48 am

If there is no solution for exporting to PDF, maybe there is a way to remove the save as PDF option ?
When the option is available users are gonna use it and get the nasty error.

User avatar
Rathinagiri
Posts: 5095
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 93 times
Been thanked: 106 times
Contact:

Post by Rathinagiri » Sun Mar 13, 2016 12:43 pm

Sure we shall remove this option inside the print preview. Now you can directly print to pdf if you want to.

This is an old rude method saving the report pages as images. The size of pdf files would be huge if the number of pages are more.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest