Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What I want is to display a pdf file in a pdf viewer from the silverlight client side. I have the pdf file on a local drive which I should display. Any help will be appreciated. Am using Silverlight 5, .Net framework 4.0.30319

What I have tried:

I have tried to use the following piece of code:
C#
var wc = new WebClient();
wc.OpenReadCompleted += (s, e) => c1PdfViewer1.LoadDocument(e.Result);
wc.OpenReadAsync(new Uri(ILMIS;component/Files/SelectedFile.pdf", UriKind.Relative));
The above code works ok, But I want to point the uri to the actual file:
wc.OpenReadAsync(new Uri(@"C:\PDF\SelectedFile.pdf", UriKind.Relative));
Posted

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