chlade
asked on
CrystalReportViewer and Zoom
I am using the CrystalReportViewer on a form to show a report. I know that you can use the Zoom method to set the zoom level. For instance, CrystalReportViewer1.Zoom( 75).
What I'd like to be able to do is save the zoom setting when the user closes the form and go back to this when the user next runs the report.
However, I can't seem to find a property that indicates the zoom level.
Is there a way of doing this?
I am using VB 2005, but I'd imagine it might be the same for earlier versions.
Thanks,
Chris
What I'd like to be able to do is save the zoom setting when the user closes the form and go back to this when the user next runs the report.
However, I can't seem to find a property that indicates the zoom level.
Is there a way of doing this?
I am using VB 2005, but I'd imagine it might be the same for earlier versions.
Thanks,
Chris
You might consider saving the value in the application config file. I use it to save things like the previous size and location of the application, etc.
ASKER
That's exactly what I want to do. My question is how do I _get_ the value so that I can save it.
ReportViewer.ZoomPercent ?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I had just figured out a way of doing it whereby I was parsing the 3rd panel of the status bar. This was a bit clunky. You'd think there would be a property such as ZoomPercent but there doesn't appear to be.
BriCrowe, I like your method better than mine. Thanks!
BriCrowe, I like your method better than mine. Thanks!