Progress bar when export file ?

Technical support for Spire.DataExport

Moderators: iceblue support, DataExport, Manager

Progress bar when export file ?

Postby tdloc » 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

Re: Progress bar when export file ?

Postby Justin Weng » 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
User avatar
Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Re: Progress bar when export file ?

Postby tdloc » Mon Aug 08, 2011 8:24 am

Justin Weng wrote: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


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

Re: Progress bar when export file ?

Postby Justin Weng » 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
User avatar
Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Re: Progress bar when export file ?

Postby tdloc » 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 :D.

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


Return to Spire.DataExport

Who is online

Users browsing this forum: No registered users and 0 guests