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

Barcode rendering speed

2 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sonic
Top achievements
Rank 1
Sonic asked on 28 Sep 2008, 06:57 AM
We use Telerik.Reporting.Processing.ReportProcessor.Render to output barcode programmatically, everything goes fine, but the Render step speed cost 1 sec. I'v tried the barcode font method, the graphics renders much faster, i dont' know why the reporter render cost so much time in render a simple barcode, 1 sec really not good for us when we generate 100 codes at a time in web interface.
Appreciated for any response.

2 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 29 Sep 2008, 12:55 PM
Hi Sonic,

From the information you have provided, it is not clear where and why you are experiencing performance issues with the bar code report item. In order to troubleshoot this issue, we would like to gather a more info about your case.

1. Have you really tried to generate a report with many bar codes, let say 20-30 pages long with 10-20 bar codes per page, and then measure the performance? Does the rendering time scale proportionally to the number of the bar codes being rendered? You see, rendering a one-page report with a single bar code in it is not a correct performance measurement. There are many other things that might cause the slow down.

2. Have you tested rendering your report with and without the bar codes? Setting the Visible property of the Barcode report item to true and false is sufficient for the test. Is the major slow down caused by the bar code report item or not?

3. Have you tried to render the report in the different output formats? Does the slow down remain the same in all formats, or it is observed in a specific format only. The different rendering extensions do not work exactly the same under the hood, so it is possible that the speed issue is concerning only one of them.

4. Since bar codes are meant solely for printing, have you considered to generate your report in a more printer-friendly format than HTML, such as PDF? The PDF rendering format can provide you the best printing quality for the bar codes, which is important when scanning them with a bar code scanner. You can visit the following KB article to see how you can export a report programmatically directly to a PDF, without going through the web viewer. When you implement the PDF solution can you check whether the speed has improved.

We are looking forward to your feedback.


Kind regards,


the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sonic
Top achievements
Rank 1
answered on 06 Oct 2008, 01:45 AM
sorry to reply so late for our long holiday.
the problem caused by my mistake to create new report each barcode, it's really stupid, speed is very good now:)
and thanks so much.
Tags
General Discussions
Asked by
Sonic
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Sonic
Top achievements
Rank 1
Share this question
or