• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

Shelling to Microsoft Office Picture Manager

I have an application that returns a set of images from a Database, and rather than create yet another application to select/print/view etc I would like to save the files to a sub-folder generated off "My Pictures" and shell to the  "Microsoft Office Picture Manager" Application , part of our standard Office Pro 2003 starting in that folder.

Has any Guru done this, and can give me some pointers

Thanks
0
Linking
Asked:
Linking
  • 2
1 Solution
 
bruintjeCommented:
Hello Linking,

if this is just starting the application and passing the file to it you could try something along the lines of

but i have a problem in starting any path with a space in it and couldn't solve that part it would work when i used a path like c:\mypictures\etc but not with c:\my pictures\etc

----------
private void button1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process proc = new System.Diagnostics.Process();
            proc.EnableRaisingEvents = false;
            proc.StartInfo.FileName = "OIS";
            proc.StartInfo.Arguments = @"C:\Documents and Settings\Administrator\My Documents\My Pictures";
            proc.Start();
        }

or shorter

private void button1_Click(object sender, EventArgs e)
        {
    string myPicturesPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + "\Yourfolderhere";
    System.Diagnostics.Process.Start("OIS", myPicturesPath);
        }
----------

hope this helps a bit
bruintje
0
 
LinkingAuthor Commented:
Thanks - I missed the proc.StartInfo.Arguments line
Much appreciated
0
 
bruintjeCommented:
glad i could help, thanks for the grade :)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now