Topic: Providing XML as datasource in RAS Posted: 21 Jan 2008 at 4:12am
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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum