Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Reporting through XML datasource Post Reply Post New Topic
Author Message
abhi81
Newbie
Newbie


Joined: 11 Jan 2007
Location: Canada
Online Status: Offline
Posts: 38
Quote abhi81 Replybullet Topic: Reporting through XML datasource
    Posted: 09 Oct 2007 at 9:21pm
Hello All,
I have build a report that uses XML file as the datasource. The report work fine as it is in the design mode but when i fire it of the application (Vb.net 2003 windows form based application) it does not give me the entire result set.
 
Basically i have a datagrid where i am making some changes after making the changes i save it and then create the xml file at the specified location.
 
Once the xml file is created i close the form with the grid and pass on the control to a form that contains the CrystalReportViewer control instance.
 
I thought that the xml file was not being created correctly but that is not the case because ater the save and before loading the form with report viewer the xml file was created with all the data changes that were made in the datagrid.
 
The code for loading the xml file is as follows:

Dim dataSet As DataSet = New DataSet

dataSet.ReadXml(xmlfileloc, XmlReadMode.ReadSchema)

crpt.Database.Tables(0).SetDataSource(dataSet.Tables("Data"))

Me.CrystalReportViewer1.ReportSource = crpt

Can some one please shed some light on this matter?



Edited by abhi81 - 10 Oct 2007 at 6:48am
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.