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