Saad
Saad

Reputation: 33

Windows 8 Store App - Launch document placed at webserver without downloading locally

I am currently building a Windows 8 Store app and am opening a document in Word client using the following method call.

await Windows.System.Launcher.LaunchFileAsync(Storagefile);

The problem is that the Storagefile is currently being opened from a local path i.e

D://document.docx

I want to be able to open this directly from a webpath i.e.

https://somepage/document.docx

but the need is that I cannot download it locally but just Launch it directly from the webpage.

Can this be done?

Upvotes: 0

Views: 173

Answers (1)

Saad
Saad

Reputation: 33

I have found a way to open the documents directly from the server without downloading them locally.

Url Protocols can be used to achieve the direct opening functionality.

await Windows.System.Launcher.LaunchUriAsync(new Uri( "ms-word:https://somepage/document.docx"));

Upvotes: 1

Related Questions