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

Save Progress Bar

5 Answers 93 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Iron
Marcello asked on 10 Mar 2015, 05:30 PM
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.

5 Answers, 1 is accepted

Sort by
0
Marcello
Top achievements
Rank 1
Iron
answered on 10 Mar 2015, 05:57 PM
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.
0
Petya
Telerik team
answered on 13 Mar 2015, 12:09 PM
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.

 
0
Marcello
Top achievements
Rank 1
Iron
answered on 17 Mar 2015, 09:04 AM
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.

0
Marcello
Top achievements
Rank 1
Iron
answered on 17 Mar 2015, 12:14 PM
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.

0
Petya
Telerik team
answered on 19 Mar 2015, 04:54 PM
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.

 
Tags
RichTextBox
Asked by
Marcello
Top achievements
Rank 1
Iron
Answers by
Marcello
Top achievements
Rank 1
Iron
Petya
Telerik team
Share this question
or