Kim.Desruisseaux
May 8th, 2006, 02:07 PM
I have developed a few reports using the push model with the winform report viewer. Here is what I am currently doing.
Public Sub InformationClassificationStructure(ByVal ds As DataSet, ByVal Title As String)
If Not ds Is Nothing Then
Dim cr As New RMTree3LevelReport
cr.SetDataSource(ds) '<<-- at runtime, switch to the dataset as the datasource
'set som text objects
Dim txtObj As CrystalDecisions.CrystalReports.Engine.TextObject
txtObj = cr.ReportDefinition.ReportObjects("Text20")
txtObj.Text = title
'show report
CrystalReportViewer1.ReportSource = cr
CrystalReportViewer1.Show()
End If
End Sub
What I would like to do is convert this code to use a crystal report as a web service. I have searched and read all I can find to no avail.
I followed the instructions to publish a report as a web service, but cannot figure out how to set the data source.
Another question. Can one web service contain more than one crystal report?
Any help would be appreciated.
Public Sub InformationClassificationStructure(ByVal ds As DataSet, ByVal Title As String)
If Not ds Is Nothing Then
Dim cr As New RMTree3LevelReport
cr.SetDataSource(ds) '<<-- at runtime, switch to the dataset as the datasource
'set som text objects
Dim txtObj As CrystalDecisions.CrystalReports.Engine.TextObject
txtObj = cr.ReportDefinition.ReportObjects("Text20")
txtObj.Text = title
'show report
CrystalReportViewer1.ReportSource = cr
CrystalReportViewer1.Show()
End If
End Sub
What I would like to do is convert this code to use a crystal report as a web service. I have searched and read all I can find to no avail.
I followed the instructions to publish a report as a web service, but cannot figure out how to set the data source.
Another question. Can one web service contain more than one crystal report?
Any help would be appreciated.