Form With TppReports Load Slowly
Hi,
I am using RBPro 7 with Delphi 7.
I have a form that contains 53 TppReports and 55 TppDBPipelines. The
PAS file is about 12,500 lines.
When this form is created at runtime, it takes about a minute to
complete. Are event code being called at the point of component
creation? How do I determine which component is taking the longest to
be created?
Thanks.
Regards,
Frederick
I am using RBPro 7 with Delphi 7.
I have a form that contains 53 TppReports and 55 TppDBPipelines. The
PAS file is about 12,500 lines.
When this form is created at runtime, it takes about a minute to
complete. Are event code being called at the point of component
creation? How do I determine which component is taking the longest to
be created?
Thanks.
Regards,
Frederick
This discussion has been closed.
Comments
This could be caused by a number of things and tracing into the constructors
may give some clues. The fact is that a form with 53 reports and 55
datapipelines is not a very effecient design. A more effecient approach
would be to design your data access in DADE (data workspace) removing the
need for all the datapipeline components and saving your reports as template
files, removing the need for all but one TppReport object on your form. You
might even consider using something like the End-User solution (see the
demos located in the \RBuilder\Demos\End User\... directory.
This way you can dynamically load each template and execute the report on
demand without the need for all the overhead residing on the form.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks for the information. I will explore the alternative method of
using DADE and also refer to the end-user demos.
Regards,
Frederick