?
Solved

Updating the zoom view in a Crystal Reports in asp.net

Posted on 2008-06-11
2
Medium Priority
?
465 Views
Last Modified: 2013-11-26
I have a report in a asp.net page, the zoom is set initially in 100, but if it is changed, nothing happen and remain the initial set (100)
I tryied this:
  Protected Sub crViewer1_ViewZoom(ByVal source As Object, ByVal e As CrystalDecisions.Web.ZoomEventArgs) Handles crViewer1.ViewZoom
          Me.crViewer1.Zoom(e.NewZoomFactor)
 End Sub
But an application error happened:
http://www.experts-exchange.com/Web_Development/WebApplications/Q_23399688.html

Is there another way for updating the zoom?

Thanks!
0
Comment
Question by:aslyas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 750 total points
ID: 21765647
0
 

Author Comment

by:aslyas
ID: 21770790
I got an error if I did it from command button, but I solved it updating the zoom from the bindReport function:

Protected Sub BindReport(ByVal reporte As String)
        If oRpt Is Nothing Then oRpt = New ReportDocument
        Dim zoom As Integer = CInt(txtZoom.Text)
        Try            oRpt.Load(Server.MapPath(reporte))
            oRpt.SetDataSource(dsData)
            Me.crViewer1.ReportSource = oRpt              
            Me.crViewer1.DataBind()
            Me.crViewer1.Zoom(zoom)
        Catch ex As Exception
        End Try
    End Sub

I will give you the points since you point me in the direction.

Thanks a lot!
0

Featured Post

Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Suggested Courses

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question