mgmhicks
asked on
Problem upgrading crystal report for visual studio
ASKER
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
'Dim myDS As New DataSet
'myDS = Session("oDataSet")
myreport = CType(Session("oClientDoc"), ReportDocument)
' myreport.SetDataSource(myDS)
If Session("RptName") = "Insurance" Then
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.ParameterPanel
Else
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None
End If
CrystalReportViewer1.ReportSource = myreport
Catch engx As CrystalReportsException
Session.Add("oError", engx.Message & "crViewer1")
Response.Redirect("errors.aspx")
Catch ex2 As ParameterFieldException
Session.Add("oError", ex2.Message & "crViewer1")
Response.Redirect("errors.aspx")
Catch ex3 As EngineException
Session.Add("oError", ex3.Message & "crViewer1")
Response.Redirect("errors.aspx")
End Try
End Sub
I don't use the VS versions but the message seems to imply they changed the method of referring to reports. They want to use the ReportSourceID rather than the ReportSource
This line
CrystalReportViewer1.Repor tSource = myreport
Should be
CrystalReportViewer1.Repor tSourceID = myreport
I don't know what value it takes. Try myreport. If that is not it then there should be some property of the report that gives the ID.
mlmcc
This line
CrystalReportViewer1.Repor
Should be
CrystalReportViewer1.Repor
I don't know what value it takes. Try myreport. If that is not it then there should be some property of the report that gives the ID.
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is how the problem was solved and the only other comment had nothing to do with the solution.
mlmcc