Hello,
Im trying to generate report from an existing .rpt file using RAS and providing xml as its datasource. My problem is to connect report table with its datasource.
I want to do something like following but in RAS (Using ReportClientDocument object).
Dim datasetFromXml As New System.Data.DataSet
' Load dataset from xml
ByVal reportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
' Load report Document from .rpt file
Dim i As Int32 = 0
For Each reportTable As CrystalDecisions.CrystalReports.Engine.Table In reportDoc.Database.Tables
Dim dataTable As New System.Data.DataTable = datasetFromXml.Tables(i)
reportTable.SetDataSource(dataTable)
i += 1
Next
I would really appreciate any help. Thank you