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
chladeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian CroweDatabase AdministratorCommented:
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.
0
chladeAuthor Commented:
That's exactly what I want to do.  My question is how do I  _get_ the value so that I can save it.
0
PockyMasterCommented:
ReportViewer.ZoomPercent ?
0
Brian CroweDatabase AdministratorCommented:
I misunderstood your question.  Use the ViewZoom event to record the new zoomlevel whenever it changes.

Private Sub CrystalReportViewer1_ViewZoom(ByVal source As Object, _ ByVal e As CrystalDecisions.Windows.Forms.ZoomEventArgs) _
   Handles _ CrystalReportViewer1.ViewZoom
   messagebox.show(e.NewZoomFactor.ToString)
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chladeAuthor Commented:
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!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.