Page 1 of 5

Report PDF export function does not work HMG 3.3.1

Posted: Sun Aug 10, 2014 12:29 pm
by trmpluym
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.

Re: Report PDF export function does not work HMG 3.3.1

Posted: Wed Feb 04, 2015 8:10 pm
by trmpluym
Still no solution in version hmg.3.4.0 ?

Re: Report PDF export function does not work HMG 3.3.1

Posted: Wed Feb 04, 2015 9:17 pm
by EduardoLuis
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

Re: Report PDF export function does not work HMG 3.3.1

Posted: Wed Feb 04, 2015 10:00 pm
by franco
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

Re: Report PDF export function does not work HMG 3.3.1

Posted: Thu Feb 05, 2015 5:01 am
by Rathinagiri
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.

Re: Report PDF export function does not work HMG 3.3.1

Posted: Thu Feb 05, 2015 7:02 am
by mol
I've posted quick solution to resolve compatibility problem....

Re: Report PDF export function does not work HMG 3.3.1

Posted: Sat Feb 14, 2015 4:20 pm
by trmpluym
@Rathinagiri and Marek : thanks in advance, i wait for the next version !

Re: Report PDF export function does not work HMG 3.3.1

Posted: Mon Feb 29, 2016 7:37 am
by trmpluym
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 5631 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 5631 times
I hope Marek knows the solution so a patch can be made.

Re: Report PDF export function does not work HMG 3.3.1

Posted: Sun Mar 13, 2016 10:48 am
by trmpluym
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.

Re: Report PDF export function does not work HMG 3.3.1

Posted: Sun Mar 13, 2016 12:43 pm
by Rathinagiri
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.