Antonio,
>I am using Crystal Reports 7.0 to generate VFP reports in my application. For that purpose I am using Crystal Report´s activeX control embedded in my forms. The bad news is that CR´s activeX control takes some time to load, delaying the display of the forms that use it.
>
>Does anyone have a suggestion of how to optimize the loading time ?
I don't use the ActiveX control, because the automation server provides much more control, but the folowing trick might be usable for you:
Drop the activeX control on an form (in my case: an applic form) which is invisible during runtime (put a NODEFAULT in the show event). Whenever you need a CR report, reference the activeX control on this invisible form like:
WITH Applic.CrReportControl
.reportname = ...
.action = ....
ENDWITH
This way the activecontrol is loaded only once and doesn't hurt displaying performance of forms which wants to reference a report.
Walter,