Shelling to Microsoft Office Picture Manager

Posted on 2006-05-11
Last Modified: 2013-12-03
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

Question by:Linking
    LVL 44

    Accepted Solution

    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";

    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
    LVL 1

    Author Comment

    Thanks - I missed the proc.StartInfo.Arguments line
    Much appreciated
    LVL 44

    Expert Comment

    glad i could help, thanks for the grade :)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now