Launch Microsoft Office 2003 Picture Manager from C# Application

G

GrantS

I am needing to launch Microsoft Office 2003 Picture manager and
display a selected image - from my Winforms C# application.

The path to the files will be c:\Documents and Settings\USERNAME\My
Documents
Hopefully someone knows the exe or dll to be run and how this can be
done in C#.

I am needing:

Thanks in advance.


Grant
 
A

Adrian Mascarenhas

I am needing to launch Microsoft Office 2003 Picture manager and
display a selected image - from my Winforms C# application.

The path to the files will be c:\Documents and Settings\USERNAME\My
Documents
Hopefully someone knows the exe or dll to be run and how this can be
done in C#.

the exe for Microsoft Office 2003 Picture Manager is ois.exe. You can find this in your Office11 folder.
The command line to open an image is "ois.exe file.jpg"
From C#, you can use the system.diagnostics.process to launch the exe.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName="ois.exe";
proc.StartInfo.Arguments=" abc.jpg";
proc.Start();


--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top