hi,
Is it possible to (within my WinForm c# app.) to start an MS Frontpage
2003 and have it open a specific file when it opens? (like, start
frontpage 2003, with the opening file that it opens be determined by
the c# application?
Any help is appreciated.
Thanks,
Trint
Hi,
I am sure this can be achieved. I don't have FrontPage installed on my
machine, but I tried the following using MS Word.
System.Diagnostics.Process process = new
System.Diagnostics.Process();
process.EnableRaisingEvents = false;
process.StartInfo = new
System.Diagnostics.ProcessStartInfo("winword.exe", @"c:\test.doc");
process.Start();
The piece of code opens Word with c:\test.doc as the active document.
The only caveat to the solution is that I has to add C:\Program Files
\Microsoft Office\OFFICE11 to my PATH environment variable. But it is
not a show stopper as you can specify the full path to the exe you
want to start. The difficult part was finding the exe file (sad but
true)!
I am pretty sure that FrontPage will work the same.
For more information see
http://www.c-sharpcorner.com/Upload...dsInCS12032005042031AM/ShellCommandsInCS.aspx.