Report PDF export function does not work HMG 3.3.1
Moderator: Rathinagiri
Report PDF export function does not work HMG 3.3.1
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.
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 329 times
Re: Report PDF export function does not work HMG 3.3.1
Still no solution in version hmg.3.4.0 ?
-
- Posts: 683
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: Report PDF export function does not work HMG 3.3.1
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
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
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
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
Franco
Canada
- 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
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.
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.
South or North HMG is worth.
...the possibilities are endless.
Re: Report PDF export function does not work HMG 3.3.1
I've posted quick solution to resolve compatibility problem....
Re: Report PDF export function does not work HMG 3.3.1
@Rathinagiri and Marek : thanks in advance, i wait for the next version !
Re: Report PDF export function does not work HMG 3.3.1
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:
and choose a PDF file name, the error is:
I hope Marek knows the solution so a patch can be made.
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:
and choose a PDF file name, the error is:
I hope Marek knows the solution so a patch can be made.
- Attachments
-
- PrintSystem.zip
- (10.09 KiB) Downloaded 271 times
Re: Report PDF export function does not work HMG 3.3.1
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.
When the option is available users are gonna use it and get the nasty error.
- 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
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.
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.
South or North HMG is worth.
...the possibilities are endless.