使用Windows Phone打开pdf文件

使用Windows Phone打开pdf文件

问题描述:

我想使用Windows手机编程打开pdf文件。我在应用程序中有1个按钮,pdf存储在应用程序包中,所以一旦我点击按钮,应该用任何支持pdf文件的应用程序打开pdf文件。有没有api可以打开它?

I want to open pdf file using windows phone programming. I have 1 button in application and pdf is stored inside the app package, so once I click on button, pdf file should be opened with any application that supports pdf file. Is there any api to open it?

你试过这个吗,

Have you tried this,
var MyPdf = Application.GetResourceStream(new Uri("MyPdf;component/BeggPhoneGap.pdf", UriKind.Relative));
this.MyPdfViewer1.LoadDocument(MyPdf.Stream);
MyPdfViewer1.FontSize = 20;
MyPdfViewer1.Height = 550;



http://www.c-sharpcorner.com/UploadFile/74f20d/retrieving-pdf-file-in- windows-phone-7 / [ ^ ]



-KR


http://www.c-sharpcorner.com/UploadFile/74f20d/retrieving-pdf-file-in-windows-phone-7/[^]

-KR