How to reset preview zoom to default
How to reset preview zoom to default
Hi ! I need to reset preview zoom to default/100%
If user set zoom to 75% for a report this value remains for the next preview,how to rest it to default ?
Thanks.
If user set zoom to 75% for a report this value remains for the next preview,how to rest it to default ?
Thanks.
How to reset preview zoom to default
Hello,
You can use following code:
Thank you.
You can use following code:
Code: Select all
StiSettings.Load();
StiSettings.Set("Viewer", "Zoom", 1);
StiSettings.Save();
How to reset preview zoom to default
Thanks but sorry, this doesn't work for me
I'using this code
Thanks !
I'using this code
report is shown at 75%zoomStiSettings.Load()
StiSettings.Set("Viewer", "Zoom", 1)
StiSettings.Save()
Dim wRp As New StiReport
wRp = StiReport.GetReportFromAssembly("myrepo.dll")
.....................
Using wform As Stimulsoft.Report.Render.StiPreviewForm = New Stimulsoft.Report.Render.StiPreviewForm(wRp)
wRp.Render()
wform.ShowDialog()
End Using
Thanks !
How to reset preview zoom to default
Hello,
Which version of report engine you are use?
Thank you.
Which version of report engine you are use?
Thank you.
How to reset preview zoom to default
My version :2009.2.456
Thanks.
Thanks.
How to reset preview zoom to default
Hello,
In which place of your application you have try use this code?
Thank you.
In which place of your application you have try use this code?
Thank you.
How to reset preview zoom to default
The code you suggested is placed just before compiled report is loaded,when user select a menu option,more details at post #3
Thanks !
Thanks !
Jan wrote:Hello,
In which place of your application you have try use this code?
Thank you.
How to reset preview zoom to default
Hi
Please place it in a very beginning of your application when none of the report objects have been created.
You should do it in the program.cs before initializing of the application forms.
Thank you.
Please place it in a very beginning of your application when none of the report objects have been created.
You should do it in the program.cs before initializing of the application forms.
Thank you.
How to reset preview zoom to default
No, not solved the problem.
Placing this code at very beginning will reset zoom to default after each preview if application is not closed?
I'm using the code just before each preview and it seems the report is shown at 100 % zoom but in left corner
slider is at 75%.
Thanks.
Placing this code at very beginning will reset zoom to default after each preview if application is not closed?
I'm using the code just before each preview and it seems the report is shown at 100 % zoom but in left corner
slider is at 75%.
Thanks.
Edward wrote:Hi
Please place it in a very beginning of your application when none of the report objects have been created.
You should do it in the program.cs before initializing of the application forms.
Thank you.
How to reset preview zoom to default
Hello,
Please create sample project which demonstrate problem and send it to support@stimulsoft.com.
Thank you.
Please create sample project which demonstrate problem and send it to support@stimulsoft.com.
Thank you.