Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Consuming excel webservices for a Sharepoint 2013 site deployed on Office 365 - OpenWorkbook

$
0
0

Hello,

My requirement is to update an excel workbook uploaded in a sharepoint 2013 online site.

In Visual Studio 2012, I have added web service reference to the below url - 

<Office365SiteCollectionUrl>/_vti_bin/ExcelService.asmx

And using the below code snippet - 

                                     

    ExcelService xlService = new ExcelService();
                    Status[] status;

                    xlService.Timeout = 600000;

                    var securePassword = new SecureString();
                    var password = "<password>";
                    foreach (char c in password)
                    {
                        securePassword.AppendChar(c);
                    }
                    xlService.Credentials = new SharePointOnlineCredentials("<UserName>", securePassword); 

string sessionId = xlService.OpenWorkbook("<PathOfExcel>", "en-US", "en-US", out status);

                   The method "OpenWorkbook" throws error - "we couldn't find the file you wanted".

No other information is available.

It would be very much appreciated if anyone can provide a resolution for this issue.

Thanks in Advance!! 



amrita.sengupta@capgemini.com


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>