读取xml文件时如何显示进度条? [英] How to show a progress bar while reading a xml file?

查看:249
本文介绍了读取xml文件时如何显示进度条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用Crytal报告WPF应用程序来生成带有xml文件的报告,这是我使用的代码

Hi
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;

}



因此有人可以向我提供一个想法或示例,如何在读取xml文件时显示进度条窗口?



so someone can provide me a idea or example how to show a progress bar window while xml file read?

reportData.ReadXml("http://192.168.1.10/test/data.xml");



问候



Regards

推荐答案



尝试检查以下链接:

http://stackoverflow.com/问题/8099149/how-to-use-progress-bar-during-loading-an-xml-file-in-c [
Hi,

try to check following link:

http://stackoverflow.com/questions/8099149/how-to-use-progress-bar-during-loading-an-xml-file-in-c[^]

Regards
Robert


这篇关于读取xml文件时如何显示进度条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆