Save Progress Bar

6 posts, 0 answers
  1. Marcello
    Marcello avatar
    58 posts
    Member since:
    Apr 2013

    Posted 10 Mar 2015 Link to this post

    Hi,

    I work creating at runtime a big report (250/300 pages). Any page contains 2/3 charts.
    All works good with good performances.

    Now, if I save the report as PDF the application freezes for a lot of minutes waiting the end of process (and it consumes >3Gb memory).

    Is possible to show a Progress Bar with saving info and progress (and reduce the memory consuption)?

    Thanks,
    marc.
  2. Marcello
    Marcello avatar
    58 posts
    Member since:
    Apr 2013

    Posted 10 Mar 2015 Link to this post

    Hi,

    if a direct solution unexists, you think is possible to:

    1) Save one page at time in a tmp folder (and show a simply progress bar)
    2) Merge the exported pages is a single final pdf  (and show a simply progress bar)

    Thanks,
    marc.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petya
    Admin
    Petya avatar
    975 posts

    Posted 13 Mar 2015 Link to this post

    Hi Marc,

    RadRichTextBox's export to PDF blocks the UI thread so showing a busy indicator while exporting would be a difficult task. You could take a look at this forum thread when updating RadBusyIndicator even when the UI thread is blocked has been discussed.

    Could you let me know whether you are actually showing the report in RadRichTextBox or simply producing the document for export? In the latter case we might be able to suggest a solution through the new RadPdfProcessing library where the export of documents is significantly faster and does not block the UI thread.

    Regards,
    Petya
    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.

     
  5. Marcello
    Marcello avatar
    58 posts
    Member since:
    Apr 2013

    Posted 17 Mar 2015 in reply to Petya Link to this post

    Hi Petya,
    thank's very much.

    I tried the suggested strategy using RadPdfProcessing but export fails with null reference.
    Searching in google I finded this "http://www.telerik.com/forums/radfixeddocument-null-reference".

    Exists a strategy to export only a document page at a time?

    Thanks,
    marc.

  6. Marcello
    Marcello avatar
    58 posts
    Member since:
    Apr 2013

    Posted 17 Mar 2015 in reply to Marcello Link to this post

    Hi Petya,

    After new tests, all works good with really good performances using RadPdfProcessing.
    10/15 seconds for 300 Pages!!
    So the progress bar isn't necessary.

    But new problems appear:
    - Exporting one of my documents generate the null references exception.
    - I look good the RadCartesiaCharts inserted in the document but when I export it the series disappear.

    I open new threads for this problems.

  7. Petya
    Admin
    Petya avatar
    975 posts

    Posted 19 Mar 2015 Link to this post

    Hello Marc,

    I'm glad to hear that this works for you. 

    Regarding API that would allow merging pages, the thread you found is actually related to the PdfProcessing library. We are unable to provide a similar solution for RadRichTextBox.

    As to the exceptions and other issues you are seeing, please open support tickets for those and attach the respective documents. We will look into the cause and address it accordingly.


    Regards,
    Petya
    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
UI for WPF is Visual Studio 2017 Ready