Page 1 of 1
Rich Text performance
Posted: Fri Sep 30, 2016 2:30 pm
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.
Re: Rich Text performance
Posted: Mon Oct 03, 2016 1:52 pm
by HighAley
Hello.
Unfortunately, it's impossible to print the report if it is not rendered completely.
Thank you.
Re: Rich Text performance
Posted: Mon Oct 03, 2016 3:16 pm
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?
Re: Rich Text performance
Posted: Tue Oct 04, 2016 12:16 pm
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.
Re: Rich Text performance
Posted: Tue Oct 04, 2016 3:36 pm
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.
Re: Rich Text performance
Posted: Wed Oct 05, 2016 6:39 am
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.
Re: Rich Text performance
Posted: Wed Oct 05, 2016 5:16 pm
by edsonmiranda
Is there a way to print direct to printer without preview to client printers?
Re: Rich Text performance
Posted: Fri Oct 07, 2016 7:28 am
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.