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

PDFViewer and PDFViewerNavigation

5 Answers 176 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
rcmp-grc
Top achievements
Rank 1
rcmp-grc asked on 03 Jan 2017, 04:20 PM

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

5 Answers, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 06 Jan 2017, 09:50 AM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
rcmp-grc
Top achievements
Rank 1
answered on 06 Jan 2017, 02:37 PM

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

0
rcmp-grc
Top achievements
Rank 1
answered on 06 Jan 2017, 05:39 PM

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

0
Accepted
Tanya
Telerik team
answered on 09 Jan 2017, 11:51 AM
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.
0
rcmp-grc
Top achievements
Rank 1
answered on 10 Jan 2017, 05:18 PM
Thanks Tanya, you're a gem!
Tags
PDFViewer
Asked by
rcmp-grc
Top achievements
Rank 1
Answers by
Tanya
Telerik team
rcmp-grc
Top achievements
Rank 1
Share this question
or