JadeReport formatting

Forums for specific tips, techniques and example code
Speirs
Posts: 9
Joined: Mon Dec 17, 2012 8:58 am

JadeReport formatting

Postby Speirs » Tue Oct 29, 2013 8:51 am

Hi,
I'm having a few issues with the format of the data stored in a JadeReport.
We are on Jade 7.0.05
Single User dev on a Win7 box.
PrintDataType=GDI and PrintFileFormat=EMF

Basically our process is:
create jReport transient;
app.printer.setReport(jReport);
app.printer.printPreview := true;
//print the report
app.printer.printReport(jReport);

The problem is that the printed output is different, only based on if I change the app.printer.printPreview attribute from true to false.
There is no other code change at all, except to change app.printer.printPreview := true; to app.printer.printPreview := false;

If it is true, the report preview comes up, I cancel out, and it prints perfectly, looks great.
If it is false, no preview comes up and it goes straight to the printer, and comes out looking totally different.

The report is printing RichText controls, so it looks better being PrintFileFormat=EMF. If I change to PrintFileFormat=SVG then both come out the same - looking stretched and horrible.
So EMF works great, but only if previewed first. If changed to no preview it looks to print as SVG, even though nothing has changed except that app.printer.printPreview attribute.

I have attached the 2 outputs to show what I am meaning.

Any help would be appreciated.
Many thanks
Stephen
Attachments
NoPreview.pdf
Print output without previewing first
(36.21 KiB) Downloaded 502 times
Preview.pdf
Print output after a preview
(37.88 KiB) Downloaded 480 times

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 8 guests

cron