PDFViewer Print Not Working Correctly

5 posts, 0 answers
  1. Kevin
    Kevin avatar
    3 posts
    Member since:
    Jun 2015

    Posted 09 Jun Link to this post

    Hello,

     

    We're having some issues with the Telerik RadPDFViewer not printing correctly. When we were on the UI for WPF version 2016.1.112 the print worked fine. Now that we are on the new version 2016.2.503 the print isn't working as intended. 

     

    The problem is if you have a multi page PDF in the PDFViewer and try and print it.

    The PDF is converted to a byte array (to save to the database), then made into a MemoryStream, and then is passed to the PDFViewer. When you run the PDFViewer.Print() function it will send the PDF to the printer, but data only actually is printed on the first page and the following pages are just blank pages. The printer spits out the correct number of pages that are in the PDF but the first page is the only one that actually has something on it.

     

    The reason we take the PDF and convert it to a byte array is because it's saved to the database for record and display later. This allows a user can come back later on and load the PDF that was saved to the database. It's loaded in from the database into a MemoryStream then to the PDFViewer.

     

    I can provide a sample project that demonstrates the issue we are experiencing and how we are converting everything around. I would attach it but it wouldn't let me.

     

    Telerik UI for WPF version: 2016.2.503 - May 03,2016

    .Net Framework version: 4.0

     

    Thanks in advance,

    Kevin

  2. Justin
    Justin avatar
    1 posts
    Member since:
    Jan 2015

    Posted 09 Jun in reply to Kevin Link to this post

    We've run into the same issue.  This issue can also be replicated in the First Look sdk example for the PDF Viewer, if you load the document and the print it some pages will be printed blank.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vitalij
    Vitalij avatar
    35 posts
    Member since:
    Dec 2010

    Posted 10 Jun Link to this post

    Same issue here, but according to release notes for internal builds it should be fixed in 2016.2.516. So we're eagerly waiting for the next release.
  5. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 10 Jun Link to this post

    Hi all,

    Yes, there is an issue with the printing functionality of RadPdfViewer in the official 2016.2 503 version. As Vitalij already pointed out, the issue is fixed and included in out latest internal builds so you could download and test the fix. Our next official release is expected to be out in the next week as well.

    @Kevin, the public forums allow you attaching only images. In case you would like to share a sample project to demonstrate particular scenario, you could submit a ticket through our support system where you can attach archives.

    Hope this information is helpful.

    Regards,
    Tanya
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Kevin
    Kevin avatar
    3 posts
    Member since:
    Jun 2015

    Posted 10 Jun in reply to Tanya Link to this post

    Tanya,

    Thank you for getting back to me about this issue quickly. I'm happy to hear that the issue has been fixed and will be released soon. Also thanks for letting me know about the attachment and why I couldn't attach an archive, that is good to know.

    Looking forward to that official release in the next week!

     

    Thanks,

    Kevin

Back to Top
UI for WPF is Visual Studio 2017 Ready