[Lazarus] Trying to use TProcess to run Open Office calc
Mark E. Skeels
meskeels at gmail.com
Fri Jul 22 17:42:03 CEST 2011
Hello, All,
I'm trying to run the following code.
It runs if I leave the option line commented out.
If I uncomment the option line it hangs.
This did not happen until I downloaded the latest version of Open Office
this AM.
I was running Open Office 3.1. (worked as expected)
I am now running Open Office 3.3. (hangs and Open Office Calc never starts)
I saw the warnings about using pipes and reading information back; I am
not doing any of this; just trying to open the spreadsheet, edit it, and
close it while waiting to return in the Lazarus program.
When I reset the debugger calc opens as expected.
I'm running under Windows Vista.
Any idea what is going on, please?
AProcess := TProcess.Create(nil);
AProcess.CommandLine := 'C:\Program Files\OpenOffice.org
3\program\scalc.exe ' + CurrentProcessFileName;
// AProcess.Options := AProcess.Options + [poWaitOnExit];
AProcess.execute;
AProcess.Free;
Thanks,
Mark
--
"If your creed and Scripture do not agree,
cut your creed to pieces,
but make it agree with this book."
~Charles Spurgeon~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110722/3f0bc1c7/attachment-0002.html>
More information about the Lazarus
mailing list