I want to set the initial zoom factor of my report in the viewer. I can't seem to find any way to do this. I do not use the viewer control itself, but make a call to Show as a dialog form.
StiReport myReport;
...
myReport.Show(true);
Setting viewer zoom in code
Setting viewer zoom in code
Hello.
To set zoom level to 100% you must set Zoom property to 1.
Thank you.
For setting zoom level you can use next code.jmiller wrote:I want to set the initial zoom factor of my report in the viewer. I can't seem to find any way to do this. I do not use the viewer control itself, but make a call to Show as a dialog form.
StiReport myReport;
...
myReport.Show(true);
Code: Select all
StiReport myReport;
StiOptions.Viewer.Windows.Zoom = 0.5; // 50% zoom
myReport.Show(true);
Thank you.
Setting viewer zoom in code
Worked perfectly! Thank you.
Setting viewer zoom in code
We are always glad to help you.