Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
ADMIN
Boby
Created on: 20 Sep 2016 12:05
Category: PDFViewer
Type: Bug Report
0
PdfViewer: Setting DocumentSource throws NullReferenceException when PdfViewer is hosted in ElementHost
Setting DocumentSource throws NullReferenceException when PdfViewer is hosted in ElementHost. When setting the DocumentSource, the Application.Dispatcher is used, but in Winforms app, the Application is not instantiated. 

Steps to reproduce:
1. Host PdfViewer in ElementHost in a WinForms application
2. Set the DocumentSource property
3. Run
Expected: The document is opened
Actual: NullReferenceException is thrown

Workaround: the document could be set to the Document property of PdfViewer. Or instead hosting the PdfViewer for WPF in ElementHost, use WinForms version of the control.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments