PDFViewer fails to print multi page documents

4 posts, 0 answers
  1. Simon
    Simon avatar
    6 posts
    Member since:
    Oct 2012

    Posted 20 Nov 2014 Link to this post

    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?
  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 24 Nov 2014 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Simon
    Simon avatar
    6 posts
    Member since:
    Oct 2012

    Posted 24 Nov 2014 in reply to Ralitsa Link to this post

    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.
  5. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 27 Nov 2014 Link to this post

    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.

     
Back to Top