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

Nothing will be displayed!

1 Answer 163 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Stephan Neumann
Top achievements
Rank 1
Stephan Neumann asked on 28 Mar 2014, 08:42 AM
With the following code I'm not getting the pdfviewer working:


<telerik:RadPdfViewer Name="PdfViewer" />


byte[] readAllBytes = File.ReadAllBytes(@"C:/Temp/Invoicer.Data/Rechnungsscans/K4967.pdf");
var memoryStream = new MemoryStream(readAllBytes);
this.PdfViewer.DocumentSource = new PdfDocumentSource(memoryStream, FormatProviderSettings.ReadAllAtOnce);


I'm using the version 2013.2.724.40. Passing the filename hard-coded in the xaml code also not works! Can someone give an hint??

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 31 Mar 2014, 02:59 PM
Hi,

It is not clear to me whether you are experiencing troubles seeing the RadPdfViewer control or the specific document you are trying to load.

Either way, please verify all required assembly references are added to your project. If this is not the cause of the issue, please try opening the document using the open command, for example in the demos. If the issue is document-related, we would appreciate it if you send us the document so that we can further investigate.

In case you are unable to see the RadPdfViewer control at all, please share whether you are using implicit styles. Note that if this is the case you need to merge the respective to the assemblies resources dictionaries.

I hope this helps! Let me know how it goes.

Regards,
Petya
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
PDFViewer
Asked by
Stephan Neumann
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or