PDFViewer and PDFViewerNavigation

6 posts, 1 answers
  1. Don
    Don avatar
    7 posts
    Member since:
    Dec 2016

    Posted 03 Jan Link to this post

    Hi,

    I'm uploading simple PDF scans to SQL Server and then rendering later them from a memory stream using the RadPDFViewer, but it's been a little inconsistent.  Most of the files display properly, but every so often the PDFViewer does not display the file at all and the control is just a white blank.  Would the orientation (portrait vs landscape) of the scanned PDF file have any affect on this?

     

    Also, I am not able to locate the PDFViewerNavigation control in my Toolbox, is this control included with the Telerik UI for WPF?

     

    Thanks,

    Don

  2. Tanya
    Admin
    Tanya avatar
    583 posts

    Posted 06 Jan Link to this post

    Hi Don,

    From the described behavior, seems like there is something specific in the content of the documents that RadPdfViewer cannot read. This could be related to an issue or a missing feature in the control and not likely to the orientation of the document. However, we will need to test the documents in order to say what exactly the reason behind the experienced issue is.

    RadPdfViewer comes with a RadToolBar in its UI. You can find more information on how to add the toolbar and wire it with the commands of the viewer in the Getting Started help article. 

    Hope this is helpful.

    Regards,
    Tanya
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Don
    Don avatar
    7 posts
    Member since:
    Dec 2016

    Posted 06 Jan in reply to Tanya Link to this post

    Hi Tanya,

    I believe the documents in question contained some null bytes at the end of the byte array when stored in SQL Server, so I am checking for this before attempting to render them which seems to have resolved the issue.

    I have downloaded the Telerik sdk and will take a look at the RadToolBar examole as you suggested, I'm sure I will be able to make use of it.

    Thanks for your help!

    Don

  4. Don
    Don avatar
    7 posts
    Member since:
    Dec 2016

    Posted 06 Jan in reply to Tanya Link to this post

    Hi Tanya,

    I'm trying to add the RadToolBar to my WPF application by following the example and have added the following reference:

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

    but I receive an error "the name RadToolBar does not exist in the namespace...", am I not referencing it correctly?  I can't locate the RadToolBar in my Toolbox.

     

    Thanks,

    Don

  5. Answer
    Tanya
    Admin
    Tanya avatar
    583 posts

    Posted 09 Jan Link to this post

    Hi Don,

    A similar error is usually observed when an assembly reference is missing. Could you please verify that all the required references are added to the project and the assemblies are from the same version? The references that RadPdfViewer needs are listed in the corresponding Getting Started article.

    Regards,
    Tanya
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  6. Don
    Don avatar
    7 posts
    Member since:
    Dec 2016

    Posted 10 Jan in reply to Tanya Link to this post

    Thanks Tanya, you're a gem!
Back to Top