Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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?
Posted

1 solution

Have you tried this,
C#
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
 
Share this answer
 
Comments
nevil_119 22-Mar-14 12:47pm    
Is there any way without adding external controls? I just want to open that pdf through button click, even pdf opens in adobe reader, that's fine. What's code to open pdf file?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900