![]() |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Quote:
Hi ! http://stackoverflow.com/questions/3...en-with-delphi Regards |
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|