View Single Post
  #2 (permalink)  
Old January 28th, 2009, 10:49 AM
NozzNazz NozzNazz is offline
Registered User
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code?

Show us a example of you source code.

A little test program to fill and show a crystal report in asp.net:

private void FillReportWithXml()
{
CrystalDecisions.CrystalReports.Engine.ReportDocum ent CrystalReport = new CrystalDecisions.CrystalReports.Engine.ReportDocum ent();
DataSet SqlDS = new DataSet();

SqlDS.ReadXml("*:\\Xml.xml");

CrystalReport.Load("*:\\*\CrystalReport.rpt");

CrystalReport.SetDataSource(SqlDS.Tables["Table"]);
ReportsViewer.ReportSource = CrystalReport;
ReportsViewer.ShowFirstPage();
}
Reply With Quote