Open office doc
inside Windows Metro
App
BY:ASHISH AGRAWAL
Problem Statement
 How to open SharePoint document inside windows 8/8.1 metro app inside a web view
 login should happen...
Solution
 Using WebView.NavigateWithHttpRequestMessage(httpRequestMessage) API
 Using this API, we can pass the requestm...
Sample Code
var httpRequestMessage = new
Windows.Web.Http.HttpRequestMessage(Windows.Web.Http.HttpMethod.Get, uriFormat);
...
Thanks
Upcoming SlideShare
Loading in …5
×

Open office doc inside windows metro app

1,392 views

Published on

How to open sharepoint document (web apps) inside windows 8 metroo app without showing the login page

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,392
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Open office doc inside windows metro app

  1. 1. Open office doc inside Windows Metro App BY:ASHISH AGRAWAL
  2. 2. Problem Statement  How to open SharePoint document inside windows 8/8.1 metro app inside a web view  login should happen seamlessly and app should be able to automatically open office web app inside web view
  3. 3. Solution  Using WebView.NavigateWithHttpRequestMessage(httpRequestMessage) API  Using this API, we can pass the requestmessage with desired cookie to webview.  Steps:      Login to office 365 account Save the rtfa and fedauth cookie create the httpRequestMessage and add cookie header to it change the URL as sharepoint document URL Make navigate request with this httpRequestMessage
  4. 4. Sample Code var httpRequestMessage = new Windows.Web.Http.HttpRequestMessage(Windows.Web.Http.HttpMethod.Get, uriFormat); uriFormat should be sharepoint document URL httpRequestMessage.Headers.Cookie.Add(“cookie-name”,”cookie-value”); WebView.NavigateWithHttpRequestMessage(httpRequestMessage);
  5. 5. Thanks

×