[英]Read and Display PDF file from Isolated Storage in a windows phone 8 app
我想從隔離存儲中讀取Pdf文件並在pdf查看器中顯示它。 但據我所知,Windows Phone 8沒有pdf控件。 我可以使用任何第三方控件嗎? 或者是否有任何其他方式在Windows Phone 8應用程序中顯示pdf文件。
你有三條路線:
編輯:如何啟動與文件關聯的應用:
StorageFolder folder = ApplicationData.Current.LocalFolder;
StorageFile file = await folder.GetFileAsync(<filename>);
Launcher.LauncheFileAsync(file);
您可以從任何需要的地方撥打電話。
// get the assets folder for the app
StorageFolder folder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Folder");
// get the file included in app "Folder"
StorageFile file = await folder.GetFileAsync("test.pdf");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.