DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 15 Aug 2007 15:22:20 +0500,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    luqman


Crystal Reports .Net 2005 ?   
If I pass a session variable from another page to crystal report viewer and
open a connection 1st time, the report displays fine, however if I click on
Back Button of Browser, change the selection criteria and response.redirect
to crystal report viewer again, it shows blank report.

I have noticed that the selection formula must be passed to crystal report
viewer, before opening the connection, and once the connection is opened, it
is reused 2nd time and ignore the new selection formula, any idea how can I
handle this ?

Is it possible, to close the crystal report connection when user click on
Back Button of Browser ?

I am opening connection with the following code on page_load.

Protected Sub Page_Load(ByVal sender as Object, ByVal e As System.EventArgs)
Handles Me.Load

Dim myConnectionInfo as ConnectionInfo= New ConnectionInfo()
With myConnectionInfo
..UserID="myID"
..Password="myPassword"
..ServerName="myServer"
End With

With CrystalReportSource1
..Report.FileName="myReport"
End With

With CrystalReportViewer1
..ReportSouce=CrystalReportSource1.ReportDocument
..SelectionFormula=myFormula
End With

setDBLogonForReport(myConnectionInfo)

End Sub

Private Sub setDBLogonForReport(ByVal myConnectionInfo as ConnectionInfo)

Dim myTableLogOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
myTableLogOnInfo.ConnectionInfo = myConnectionInfo
Next

End Sub

Best Regards,

Luqman
Date:Wed, 15 Aug 2007 15:22:20 +0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us