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?
5 Answers, 1 is accepted
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.
Telerik by Progress
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!
I'm trying to add the RadToolBar to my WPF application by following the example and have added the following reference:
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.
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.
Telerik by Progress