Opening Excel file in a SharePoint document library from VSTO with specified credentials

Posted by Saab on Stack Overflow See other posts from Stack Overflow or by Saab
Published on 2010-05-04T11:43:00Z Indexed on 2010/05/04 11:48 UTC
Read the original article Hit count: 265

Filed under:
|
|

I'm trying to open a workbook from within Excel. The Excel file is located on a SharePoint server, within a Document Library.

I use the following code to open the workbook.

newWorkbook = globalsThisAddInApplication.Workbooks.Open(
                            workbookUrl, Type.Missing, false,
                            Type.Missing, Type.Missing, Type.Missing,
                            Type.Missing, Type.Missing, Type.Missing,
                            Type.Missing, Type.Missing, Type.Missing,
                            Type.Missing, Type.Missing, Type.Missing);

When I do this the user has to enter his credentials (username/password dialog). I'm already storing the user credentials, and I want them to be used when the file is opened.

© Stack Overflow or respective owner

Related posts about excel

Related posts about sharepoint