Page 1 of 2
StiReport.Info.Zoom
Posted: Fri Feb 06, 2009 7:43 am
by Brendan
Hi,
I'm wondering if you could briefly explain what this property does and does it have any effect when physically printing a page?
StiReport.Info.Zoom
Posted: Fri Feb 06, 2009 4:37 pm
by Vital
Hello,
This property used by report designer only.
Thank you.
StiReport.Info.Zoom
Posted: Thu Feb 19, 2009 5:22 pm
by frpons
Are you sure that it does not have an effect on the print output?
I have a program which generates the reports. The rendered report is saved to a file and sent to the printer.
I was wondering why the print results was smaller than the saved file, the ratio was around 0.75%.
I saw that the StiReport.Info.Zoom variable was also 0.75, if I set it to 1.0 just before printing then the printed report is correct (maybe a small issue with the margins).
Here are the steps for the report generation
Code: Select all
report.Render(false);
report.Save("...");
PrinterSettings ps = new PrinterSettings();
ps.PrintToFile = false;
ps.PrinterName = "my printer";
report.Print(false, ps);
Thank you.
StiReport.Info.Zoom
Posted: Fri Feb 20, 2009 9:30 am
by Brendan
This is also what I was experiencing.
I was loading a template through code and calling print directly (without preview). The zoom info by default was 0.75. I couldn't figure out why it was scaled to 3/4 the size until I noticed this and set it to 1.0
However loading the template, showing it in a preview and then printing it had no problems. I must say I am using quite an old build still so this may no longer be the case.
StiReport.Info.Zoom
Posted: Fri Feb 20, 2009 9:49 am
by Edward
Hi,
Please check the size of the page. For example if you would print Letter sized page in the report on A4 printer, then sometimes the printout can be scaled by the printer's driver.
Please let us know the build number you used.
As for now before printing we reset this parameter in 1 immediately before print.
Thank you.
StiReport.Info.Zoom
Posted: Fri Feb 20, 2009 12:38 pm
by frpons
I'm using a custom size for the template (minimum between A4 and letter), and I'm setting the page size (form a user preference) for all pages in the template before rendering.
Code: Select all
PaperKind paper = PaperKind.Letter; // or PaperKind.A4
foreach (StiPage page in reportTemplate.Pages)
{
page.PaperSize = paper;
}
I'm using the last build 2009.1.341.0
Thank you.
StiReport.Info.Zoom
Posted: Mon Feb 23, 2009 2:06 am
by Edward
Hi Frpons,
Thank you for the explanation. Unfortunately we could not reproduce the issue.
Could you please send a sample project to support[at]stimulsoft.com. We could not reproduce the issue.
Thank you.
StiReport.Info.Zoom
Posted: Mon Feb 23, 2009 4:30 pm
by frpons
Hello,
I sent you a small project.
I also had difficulties to reproduce it but I think that the problem is coming from the SaveDocument (and not Save as I wrote previously) done before the print.
I if removed it the print is ok.
Thank you.
StiReport.Info.Zoom
Posted: Tue Feb 24, 2009 12:54 am
by Edward
Hi
Thank you for the test project. We will inform you when the solution is available.
Thank you.
StiReport.Info.Zoom
Posted: Tue Feb 24, 2009 8:35 am
by frpons
For the moment I just changed the order and do the print before the save, and it's ok.
Thank you.