Why is this slow?
Hi;
Using D7 ent. and RB 7.03.
i have all my reports and PipeLines at my DataModule, i execute the reports
from another forms, but it takes a while before the report shows, debuging
my code i noticed that the execution stops briefly at lines like this:
Dm.Resumen_titulo.Caption := 'Resumen de Informacion
Mensual';
This is a label on the header band at my reports, i change the caption for
every report, but i dont understand why the execution takes its time
there... is not a complex part of the report; even my querys executes
faster.
Any ideas?
Using D7 ent. and RB 7.03.
i have all my reports and PipeLines at my DataModule, i execute the reports
from another forms, but it takes a while before the report shows, debuging
my code i noticed that the execution stops briefly at lines like this:
Dm.Resumen_titulo.Caption := 'Resumen de Informacion
Mensual';
This is a label on the header band at my reports, i change the caption for
every report, but i dont understand why the execution takes its time
there... is not a complex part of the report; even my querys executes
faster.
Any ideas?
This discussion has been closed.
Comments
- to analyze performance I recommend using a profiler, such as AQTime
- for the first report that is generated in the application, ReportBuilder
will query the printer driver to determine the printer capabilities:
resolution, supported paper sizes and paper bins, etc. On most machines you
will not notice a performance hit, but if you have a slow network printer,
this may cause a performance delay. ReportBuilder caches the printer
information, so subsequent reports will run faster.
- placing all of the reports and data access components on a common
datamodule is /not/ recommended for design or performance. Instead, place
each report and data access components on a separate datamodule/form and
create/free it upone demand. You should do this with all the
forms/datamodules in your application. Efficiently handling resources
(create/destroy) will improve app performance. See our
RBulder\Demos\Reports\Demo.dpr for an example, this application contains
over a hundred reports, each is created/destroyed upon demand.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Read my reply to the post "Setting the searchexpression takes very long".
It's possible that you may have the same problem.