JadeReport formatting
Posted: 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
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