This is a migrated thread and some comments may be shown as answers.

Load PDF from URL

1 Answer 112 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Art Kedzierski
Top achievements
Rank 2
Art Kedzierski asked on 10 Sep 2013, 08:32 PM
I'm not quite understanding the documentation and I'm hoping you can provide an example. I need to attach a RadPDFViewer to a PDF that resides out on our internal network. I don't want to include it in the app as a resource as it is updated frequently (it's a help document). It's URL never changes, however. What's the best way to do that in an MVVM scenario? Is there a XAML only solution?

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 13 Sep 2013, 10:04 AM
Hi Art,

There are both MVVM and XAML solutions to your problem. Note that in order to read a document from a remote stream, the stream must support Read and Seek operations.

The XAML only solution requires setting the DocumentSource property of the RadPdfViewer to the URI which points to the stream of the document. 

I'm attaching a sample project, which demonstrates the MVVM approach. In the path variable in MainPage.xaml.cs you need to set the path to the stream.

I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

Regards,
Alexander
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PDFViewer
Asked by
Art Kedzierski
Top achievements
Rank 2
Answers by
Alexander
Telerik team
Share this question
or