kvnsdr
asked on
Crystal Reports ReportDocument1 XML Load Problem!
The following code successfully loads report.rpt into CrystalReportViewer1, however NO data shows in the report.
Now I know the XML is correct because it's read by an XSLT/HTML method.
DataSet dataset = new DataSet();
dataset.ReadXml("C:\\Repor ts\\Xml\\S tats.xml") ;
this.reportDocument1.SetDa taSource(d ataset);
this.reportDocument1.Load( "C:\\Repor t.rpt");
this.crystalReportViewer1. ReportSour ce = this.reportDocument1;
this.crystalReportViewer1. RefreshRep ort();
Now I know the XML is correct because it's read by an XSLT/HTML method.
DataSet dataset = new DataSet();
dataset.ReadXml("C:\\Repor
this.reportDocument1.SetDa
this.reportDocument1.Load(
this.crystalReportViewer1.
this.crystalReportViewer1.
ASKER
No difference.
Also added this code to check the dataset data, but still no data showing in CrystaReports....
dataset.WriteXml("C:\\Repo rts\\Xml\\ Stats123.x ml");
Both Stats.xml and Stats123.xml are identical.
Same data in and out.
Also added this code to check the dataset data, but still no data showing in CrystaReports....
dataset.WriteXml("C:\\Repo
Both Stats.xml and Stats123.xml are identical.
Same data in and out.
How did u design the report...using an xsd file...if yes then the data xml file which you are using should be of the same format as the xsd file
ASKER
Okay, here's the problem.
I'm pulling data from three data-tables within the dataset.
Now, if one of the data-tables is empty, NO data is loaded into the entire report.
I all three data-tables have at least one row of data, the report works great.
So,
Q. How do I design the report the correct way?
I'm pulling data from three data-tables within the dataset.
Now, if one of the data-tables is empty, NO data is loaded into the entire report.
I all three data-tables have at least one row of data, the report works great.
So,
Q. How do I design the report the correct way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this.reportDocument1.Load(
this.reportDocument1.SetDa