Page 1 of 1
Setting the report viewers zoom
Posted: Fri Jan 14, 2011 10:00 pm
by Pete
How do you set the report viewers starting zoom through flex?
Setting the report viewers zoom
Posted: Mon Jan 17, 2011 2:51 am
by Vladimir
Hello,
You can use the following option:
Code: Select all
StiOptions.viewer.toolbar.zoomMode = StiZoomMode.PageWidth;
If the StiZoomMode class is not found automatically, please add manually the following import line:
Code: Select all
import stimulsoft.report.enums.StiZoomMode;
Thank you.
Setting the report viewers zoom
Posted: Mon Jan 17, 2011 10:18 am
by Pete
I added both those lines of code and it did nothing.
This is the code I have to show the report:
Code: Select all
var report:StiReport = new StiReport();
StiOptions.viewer.toolbar.zoomMode = StiZoomMode.Zoom100;
report.loadReportFromString(reportString);
report.regDataXML("report_data", "report_data", xmlData);
report.showDialog(null, reportTitle, true, true);
Setting the report viewers zoom
Posted: Tue Jan 18, 2011 4:40 am
by Vladimir
Hello,
Please tell us, what version of the product are you using?
Thank you.
Setting the report viewers zoom
Posted: Tue Jan 18, 2011 5:00 am
by Vladimir
Hello,
We have fixed this error, the specified zoom is not used if the previously is set zoom by page height or page width. The update will be available in the next prerelease build on January 18.
Thank you.
Setting the report viewers zoom
Posted: Tue Jan 18, 2011 5:09 am
by Pete
Thank you!
I'll wait for the update.
Setting the report viewers zoom
Posted: Tue Jan 18, 2011 6:32 am
by Andrew
Hello,
The update will appear today.
Thank you.
Setting the report viewers zoom
Posted: Tue Apr 12, 2011 2:22 am
by Pete
I was able to use StiZoomMode.Zoom100 but not anymore. Was it removed?
Setting the report viewers zoom
Posted: Tue Apr 12, 2011 7:52 am
by Vladimir
Hello,
Yes, the designer and viewer option has been expanded. Now you can set any page zoom:
Code: Select all
StiOptions.viewer.toolbar.zoom = 100;
StiOptions.viewer.toolbar.zoom = StiZoomMode.OnePage;
Thank you.