aslyas
asked on
Updating the zoom view in a Crystal Reports in asp.net
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.ZoomE ventArgs) Handles crViewer1.ViewZoom
Me.crViewer1.Zoom(e.NewZoo mFactor)
End Sub
But an application error happened:
https://www.experts-exchange.com/questions/23399688/Aplicaci-n-de-servidor-no-disponible.html
Is there another way for updating the zoom?
Thanks!
I tryied this:
Protected Sub crViewer1_ViewZoom(ByVal source As Object, ByVal e As CrystalDecisions.Web.ZoomE
Me.crViewer1.Zoom(e.NewZoo
End Sub
But an application error happened:
https://www.experts-exchange.com/questions/23399688/Aplicaci-n-de-servidor-no-disponible.html
Is there another way for updating the zoom?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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(r
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!