Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2012, 09:58 AM
ZarrinPour ZarrinPour is offline
Senior Member
 
Join Date: Jul 2003
Posts: 227
Default Wait for Single Line Execution ...

Hi All

I have following Codes:

...
myGridView.ExporttoXLS(File-Name);
...
....Some codes....
.....
ShellExecute(File-Name,'open',.....');
....

how can i wait for Grid Exporting Completion and then open the Created File safely?

Thanks in advanced.
Kind Regards.
Reply With Quote
  #2  
Old 08-31-2012, 07:12 AM
yanvan2002 yanvan2002 is offline
Member
 
Join Date: Jan 2008
Posts: 45
Default

Quote:
Originally Posted by ZarrinPour View Post
Hi All

I have following Codes:

...
myGridView.ExporttoXLS(File-Name);
...
....Some codes....
.....
ShellExecute(File-Name,'open',.....');
....

how can i wait for Grid Exporting Completion and then open the Created File safely?

Thanks in advanced.
Kind Regards.


Hi !

http://stackoverflow.com/questions/3...en-with-delphi

Regards
Reply With Quote
  #3  
Old 09-18-2012, 05:29 PM
Ouiji Ouiji is offline
Senior Member
 
Join Date: Nov 2001
Location: US of A
Posts: 478
Send a message via AIM to Ouiji
Default Simple Way

Try //<-- (*Enable kids gloves*)

myGridView.ExporttoXLS(File-Name);
...
... Do your stuff, create your file;

Finally //<-- Tell Delphi not too move on until the Try condition is met.)
if FileExists(File-name) then // double check that its there.
ShellExecute(File-Name,'open',.....');
end;

- ouiji
__________________
"not quite smart enough to be dumb"
Extended Stats No Longer Available Due To Changes To The Forum.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 02:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.