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

Two threads in PDFcreation??

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 27 Sep 2012, 03:15 PM
Hi there,

I noticed a very strage behavior while creating a PDF-report:
it's a quite simple report with a table with data from an objectDataSource.datamenber (a method that collects the needed data elsewhere)
If I just show the output on screen with the reportviewer everything works as expected.
But if I switch to only PDF-output, I got a second thread "rendering" and BOTH threads do use the datamember so it runs twice delivering exactley the same data. So my output tooks twice as long.
So why do both threads (rendering and "main") are using the objectDataSource? Can I somehow deny spawning a second thread?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 02 Oct 2012, 01:10 PM
Hi Sebastian,

Generally, the rendering thread shouldn't be using the data-member. The data is first processed (once) and then the report is rendered into different rendering formats. The rendering is always in a separate thread. In your case, there might be another cause for the multiple calls to the data-member. 
 
Greetings,
Elian
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or