使用Windows Phone打开pdf文件 [英] Open pdf file using windows phone

查看:77
本文介绍了使用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


这篇关于使用Windows Phone打开pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆