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

PdfViewer load pdf from resources

2 Answers 32 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
wiquezada
Top achievements
Rank 1
wiquezada asked on 31 Jan 2018, 08:24 PM

Hello,
Is there a way to load a pdf file; located in Project's Resources, into pdfviewer?

Thanks a lot,

William

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Feb 2018, 08:55 AM
Hello William,

You should load the resource in a stream first:
var ms = new MemoryStream(Resources.test);
radPdfViewer1.LoadDocument(ms);

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
wiquezada
Top achievements
Rank 1
answered on 01 Feb 2018, 03:03 PM

Dimitar,

Thank you very much, it was very helpful, it works!

Regards,
William

Tags
PdfViewer and PdfViewerNavigator
Asked by
wiquezada
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
wiquezada
Top achievements
Rank 1
Share this question
or