Nothing will be displayed!

2 posts, 0 answers
  1. Stephan Neumann
    Stephan Neumann avatar
    2 posts
    Member since:
    Sep 2008

    Posted 28 Mar 2014 Link to this post

    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??
  2. Petya
    Petya avatar
    973 posts

    Posted 31 Mar 2014 Link to this post


    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.


    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top