Rajesh Kumar T
Rajesh Kumar T

Reputation: 1

view pdf within my application for windows phone 8

Download pdf from webservice url and saved it local storage. Then i am n't show it within my application. I need solution to show pdf using third party tool for pdfviewer or create own pdfviewer using c# for windows phone

Upvotes: 0

Views: 233

Answers (1)

Jaihind
Jaihind

Reputation: 2778

You should use LaunchFileAsync to Open and read a pdf file which is saved in local storage.

  // Access the file.
    StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");

    // Launch the pdf file.
    Windows.System.Launcher.LaunchFileAsync(pdfFile);

Here you can know more about LaunchFileAsync.

Upvotes: 1

Related Questions