-1

In Windows Phone I have a PDF stored here:

ApplicationData.Current.LocalFolder / myfile.pdf

How can I open that PDF for viewing?

Ian Vink
  • 66,960
  • 104
  • 341
  • 555

2 Answers2

0

Did you try using LaunchFileAsyncto open your PDFfile?

How to open pdf file in Windows Phone 8?

Community
  • 1
  • 1
Kulasangar
  • 9,046
  • 5
  • 51
  • 82
0

You have to use the LaunchFileAsync method of Launcher class. Example:

// Access the file.
StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");   
Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");
Windows.System.Launcher.LaunchFileAsync(pdfFile);
SD7
  • 514
  • 8
  • 25