Code: Select all
StiReport blankReport = new StiReport();
blankReport.Render(false);
blankReport.Show();
blankReport.SaveDocument(@"S:\Documents\BlankReport.mdc");
The only way to trigger it back to normal seems to be if you click on the full screen button or click on one of the page view mode buttons.
This issue seems to be present in 2009 and 2010 builds but I think it's now fixed in a 2010.2 pre-release.
Is there any known workaround to restoring the zoom state?
Currently I have tried doing the following and it seems to work but I'm unsure how reliable or consistent it is:
Code: Select all
StiReport blankReport = new StiReport();
blankReport.Render(false);
Stimulsoft.Report.Viewer.StiViewerForm preview = new StiViewerForm(blankReport);
preview.Show();
preview.BeginInvoke((MethodInvoker)delegate() { preview.ViewerControl.Refresh(); });
blankReport.SaveDocument(@"S:\Documents\BlankReport.mdc");