Setting the report viewers zoom

Stimulsoft Reports.Flex discussion
Locked
Pete
Posts: 10
Joined: Sun Dec 26, 2010 5:09 pm
Location: Chicago, Illinois

Setting the report viewers zoom

Post by Pete »

How do you set the report viewers starting zoom through flex?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Setting the report viewers zoom

Post 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.
Pete
Posts: 10
Joined: Sun Dec 26, 2010 5:09 pm
Location: Chicago, Illinois

Setting the report viewers zoom

Post 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);
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Setting the report viewers zoom

Post by Vladimir »

Hello,

Please tell us, what version of the product are you using?

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Setting the report viewers zoom

Post 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.
Pete
Posts: 10
Joined: Sun Dec 26, 2010 5:09 pm
Location: Chicago, Illinois

Setting the report viewers zoom

Post by Pete »

Thank you!

I'll wait for the update.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Setting the report viewers zoom

Post by Andrew »

Hello,

The update will appear today.

Thank you.
Pete
Posts: 10
Joined: Sun Dec 26, 2010 5:09 pm
Location: Chicago, Illinois

Setting the report viewers zoom

Post by Pete »

I was able to use StiZoomMode.Zoom100 but not anymore. Was it removed?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Setting the report viewers zoom

Post 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.
Locked