Spire.DataExport for .NET is a 100% pure data .NET library suit for exporting data into MS Word, Excel, RTF, Access, PDF, XPS, HTML, XML, Text, CSV, DBF, SYLK, SQL Script, DIF, Clipboard, etc.
Sat Aug 06, 2011 3:21 am
Anyone know how to make progress bar when export file ?
I have to export a large file so I need to make a progress bar for user to make sure that the program is still working, but I don't know how to do that when use Spire.DataExport.
Please help me.
Thanks.
-
tdloc
-
- Posts: 5
- Joined: Wed Aug 03, 2011 3:19 am
Mon Aug 08, 2011 3:11 am
Dear tdloc,
Thanks for your inquiry.
This problem is refer to multithreading not our component.
However, I recommend you use BeginExport and EndExport events.
And I recommend you have look at this article.
http://www.codeproject.com/KB/cpp/BackgroundWorker_Threads.aspx
Justin
Technical Support / Developer,
e-iceblue Support Team
-
Justin Weng
-
- Posts: 110
- Joined: Mon Mar 28, 2011 5:54 am
Mon Aug 08, 2011 8:24 am
Hi,
I have used BeginExport and EndExport events to set the progress bar min value and max value but I don't know how to get the current value of Spire.DataExport to update to the progress bar.
Please help me.
Thanks for your help.
-
tdloc
-
- Posts: 5
- Joined: Wed Aug 03, 2011 3:19 am
Tue Aug 09, 2011 1:45 am
Dear tdloc,
Thanks for your inquiry.
Use BeginExport event to initial the progress bar.
I don't think you should get the current value to do so, just show the progress is running.
Use EndExport event to show something like export complete.
Justin
Technical Support / Developer,
e-iceblue Support Team
-
Justin Weng
-
- Posts: 110
- Joined: Mon Mar 28, 2011 5:54 am
Tue Aug 09, 2011 7:05 am
Dear Justin Weng,
I found that DataExport has the ExportedRecord event (Occur after the export of each source record).
And with this event I have made the progress bar works successful with the percent finished
.
This is really a great component. I hope Spire.DataExport will be improve even more better.
Thanks for your help.
-
tdloc
-
- Posts: 5
- Joined: Wed Aug 03, 2011 3:19 am