Report PDF export function does not work HMG 3.3.1

Moderator: Rathinagiri

trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Report PDF export function does not work HMG 3.3.1

Post 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.
Attachments
test.zip
(4.8 KiB) Downloaded 317 times
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Report PDF export function does not work HMG 3.3.1

Post by trmpluym »

Still no solution in version hmg.3.4.0 ?
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Report PDF export function does not work HMG 3.3.1

Post 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
franco
Posts: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Report PDF export function does not work HMG 3.3.1

Post 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
All The Best,
Franco
Canada
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Report PDF export function does not work HMG 3.3.1

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Report PDF export function does not work HMG 3.3.1

Post by mol »

I've posted quick solution to resolve compatibility problem....
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Report PDF export function does not work HMG 3.3.1

Post by trmpluym »

@Rathinagiri and Marek : thanks in advance, i wait for the next version !
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Report PDF export function does not work HMG 3.3.1

Post 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 5463 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 5463 times
I hope Marek knows the solution so a patch can be made.
Attachments
PrintSystem.zip
(10.09 KiB) Downloaded 259 times
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Report PDF export function does not work HMG 3.3.1

Post 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.
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Report PDF export function does not work HMG 3.3.1

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply