Print pdf coommand freesez the gui

4 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2012 Link to this post

    Hello,
    I'm loading a pdf from stream and when I click the print command if freezes the gui for 10/15 seconds before the silverlight print menu shows up... what can I check to fix it?
    Thanks
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 02 Jul 2012 Link to this post

    Hi Paolo,

    The GUI freezes because the document starts to load the pages content. You may preload the content using the ReadAllAtOnce setting, so when the Print method is called, it will show the print menu immediately. More information about the loading modes can be found here.  

    Kind regards,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 02 Jul 2012 Link to this post

    Hello Kammen,
    I'm just using it...

    if (b.Error == null)
                    {
                        MemoryStream ms = new MemoryStream(b.RenderingResult.DocumentBytes);
     
                        pdfViewer.ReportMemoryStream = ms;
     
                        PdfFormatProvider provider = new PdfFormatProvider(ms, Telerik.Windows.Documents.Fixed.FormatProviders.FormatProviderSettings.ReadAllAtOnce);
                        this.pdfViewer.Document = provider.Import();
                    }
  5. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 04 Jul 2012 Link to this post

    Hi Paolo,

    Can you send us the document that you are using in order to reproduce this issue? We have tried different documents, but the Print dialog showed instantly. In fact, even when the document is not loaded entirely, the freezing should happen after the print button in the print dialog is pressed, not before. 

    Kind regards,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top