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

PDFViewer fails to print multi page documents

3 Answers 82 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 21 Nov 2014, 02:35 AM
We had an issue where a multi-page document would fail to print with "Object Reference no set" with the PDFViewer set to OnDemand. Also OnDemand was the only option available. The way we got around this is to set RadPdfViewer1.ReadingMode = 0 and this seems to get around the issue. Is this a known bug?

3 Answers, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 24 Nov 2014, 11:55 AM
Hello Simon,

Thank you for contacting us. 

Yes, this is known issue in the RadPDFViewer. We introduced the issue in version Q3 2014 and we will provide fix in our service pack which is scheduled for the first week of December. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - FIX. RadPdfViewer - NullReferenceException when printing via RadPdfViewerNavigator

Currently, the possible solution that I can suggest is to set the ReadingMode property to ReadingMode.AllAtOnce. Note that it may affect the loading time of the RadPdfViewer for documents with large count of pages.

I hope this information helps. Should you have further questions, I would be glad to help.


Regards,
Ralitsa
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Simon
Top achievements
Rank 1
answered on 24 Nov 2014, 11:12 PM
I agree and would love to set the reading mode to AllAtOnce but that id NOT available. But if you read my post you will see that I do set it to 0 instead.
0
Ralitsa
Telerik team
answered on 27 Nov 2014, 09:21 AM
Hi Simon,

Please, excuse me for the misunderstanding.

The AllAtOnce value is obsolete since Q3 2014. This is the reason you do not see it in Properties window or intellisense. You set the ReadingMode property to 0 which is equivalent to AllAtOnce, so you can use one of the following code snippets: 
this.radPdfViewer1.ReadingMode = Telerik.WinControls.UI.ReadingMode.AllAtOnce;
 
//or
 
this.radPdfViewer1.ReadingMode = 0;

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Ralitsa
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PdfViewer and PdfViewerNavigator
Asked by
Simon
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Simon
Top achievements
Rank 1
Share this question
or