Accessing sharepoint data

Hi.

How do I launch a document in the associated editor (Word/Excel or whatever)

Any added difficulities if the document is in Sharepoint

Best regards,

Throstur



Answer this question

Accessing sharepoint data

  • Ananth Iyer

    The easiest way to do this is just use ShellExecute feature of Windows.

    In .NET you do it like this:

    System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();

    psi.FileName = @"c:\MetaData.doc";

    psi.UseShellExecute = true;

    System.Diagnostics.Process.Start(psi);

    You can use a URL with this as well, so it would work with SharePoint.



  • A. Reimann

    Not sure, I'm not an expert with SharePoint. Probably your best bet is to post to the SharePoint newsgroups, they will have the best suggestions. This might be tricky to do if you want to get the full SharePoint UI, but I am really not sure.

  • Youngmin park

    Thanks.

    This works. Small problems still..

    1) Opens in Internet explorer (since it's an URL)

    2) When I change and save, default destination is My documents, not Sharepoint

    and default name is copy of ...

    Can this be fixed

    Regards,

    Throstur


  • Accessing sharepoint data