Rich Text performance

Stimulsoft Reports.WEB discussion
Post Reply
edsonmiranda
Posts: 29
Joined: Thu Jul 07, 2016 2:06 pm

Rich Text performance

Post by edsonmiranda »

I have a report with 8 pages for each record on database. So if I have a dataset with 1000 records the report will render 8000 pages. Is there a way to improve performance?
Can I send this report direct to printer without viewing? Is this a possible solution? I think send direct to printer and the report starts printing before rendering all pages will solve this problem.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text performance

Post by HighAley »

Hello.

Unfortunately, it's impossible to print the report if it is not rendered completely.

Thank you.
edsonmiranda
Posts: 29
Joined: Thu Jul 07, 2016 2:06 pm

Re: Rich Text performance

Post by edsonmiranda »

I think you should consider this. You could check for pages system variables. When report does not have this kind of variables the report should render only first page and then only render next pages if the user navigates. We need to print client contracts and there is about 3000 clients. How can I do this? How can I print batches of 50 contracts for example?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text performance

Post by HighAley »

Hello.

We know about this issue. We are working in this direction.
It need very much changes in our product and set many limitations.

We could only suggest you to print contracts separately. Especially because there is a limitation of memory usage on browser's side.
Or you could print the report from the server side. The necessary printer should be setup on the server.

Thank you.
edsonmiranda
Posts: 29
Joined: Thu Jul 07, 2016 2:06 pm

Re: Rich Text performance

Post by edsonmiranda »

What should I do to print from server side? Is there an specific method?
I am trying to use report.Print method and use a foreach loop to print contract by contract direct to printer.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text performance

Post by HighAley »

Hello.

Yes, you should use the Print method on server side.
Please, check that the printer is installed and you have access to it.

Thank you.
edsonmiranda
Posts: 29
Joined: Thu Jul 07, 2016 2:06 pm

Re: Rich Text performance

Post by edsonmiranda »

Is there a way to print direct to printer without preview to client printers?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rich Text performance

Post by HighAley »

Hello.

Yes, you could use one of the next methods:

Code: Select all

StiReportResponse.PrintAsPdf(report[, settings]);
StiReportResponse.PrintAsHtml(report[, settings]);
Thank you.
Post Reply