Solved

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

Posted on 2008-06-11
2
450 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
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
Comment Utility
0
 

Author Comment

by:aslyas
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now