[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2008-06-11
2
Medium Priority
?
468 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
While opting for any web-to-print solution, you need to discuss with your team and some of your end users and know their opinions about your decisions. In this article we list down some questions you need to ask yourself.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

650 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