Im using Crytal report WPF Application to generate a report with xml file and this is the code i use
protected override void OnContentRendered(EventArgs e)
{
DataSet dset = new DataSet1();
DataSet reportData = new DataSet();
reportData.ReadXml("http://192.168.1.10/test/data.xml");
dset.Tables[0].Merge(reportData.Tables[0]);
ReportDocument report = null;
report = new CrystalReport1();
report.SetDataSource(dset.Tables[0]);
reportViewer.ViewerCore.ReportSource = report;
}
so someone can provide me a idea or example how to show a progress bar window while xml file read?
just want to show busy indicator to let users know that application is reading xml file and generating report
reportData.ReadXml("http://192.168.1.10/test/data.xml");
Regards
Read XML not in UI thread. For your purpose you can use
BackgroundWorkerclass.