09-03-2003, 12:00 AM
|
webadmin@datadynamics.com
Joined on 12-12-2005
Posts 0
|
|
|
Originally Posted By: Trent Snow - DD<ActiveReports.Support@DataDynamics.com>
Hello Eric--
Make sure that you are only accessing the fields collection in FetchData event and also make sure that you are not accessing controls outside of their section's events. For example if you have a control in your detail section you should only be referencing that control within the DetailFormat, DetailBeforePrint and DetailAfterPrint and not in any other event like the FetchData event.
If you remove the code that you have in the Detail format event and replace it with code that is not referencing the fields collection and you are still having problems let me know.
"Eric" wrote in message news:d6HGxCKcDHA.376@dynaweb.datadynamics.com... > Hi, > > When I use this code in the Report Detail event 'Format': > strPath = mReportPreview.Fields(mrepDetail.Controls(x).DataField).Value > > the whole VB crash. > Control(x) is a image control and I would like to load a picture > dynamically. > > Cause: mrepDetail.Controls(x).DataField is an empty string > > Eric > >
|
|
|
|
|
Report
|
|
|
|