Data Connectivity
 Crystal Reports Forum : Crystal Reports .NET 2003 : Data Connectivity
Message Icon Topic: Providing XML as datasource in RAS Post Reply Post New Topic
Author Message
Nipun45
Newbie
Newbie
Avatar

Joined: 21 Jan 2008
Location: Nepal
Online Status: Offline
Posts: 1
Quote Nipun45 Replybullet 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
Next
 
I would really appreciate any help. Thank you
Regards,
Nipun
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.016 seconds.