Capturing report new and report open events in the report designer

Stimulsoft Reports.NET discussion
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Capturing report new and report open events in the report designer

Post by Edward »

Please define a static constructor for your form (for example Form1). It is gets a guarantee that Event Handler OpenMyReportFile will be added to the static event StiDesigner.LoadingReport only once.

Code: Select all

Shared Sub New()
      AddHandler StiDesigner.LoadingReport, New StiLoadingObjectEventHandler(AddressOf Form1.OpenMyReportFile)
End Sub
Thank you.
jing
Posts: 50
Joined: Fri Jan 26, 2007 12:47 am
Location: New Zealand

Capturing report new and report open events in the report designer

Post by jing »

Thanks - this seems to work okay so far - will let you know if it happens again
jing
Posts: 50
Joined: Fri Jan 26, 2007 12:47 am
Location: New Zealand

Capturing report new and report open events in the report designer

Post by jing »

Ater I have added

Code: Select all

 AddHandler Stimulsoft.Report.Design.StiDesigner.LoadingReport, New Stimulsoft.Report.Design.StiLoadingObjectEventHandler(AddressOf OpenMyReportFile)
in Form load, the "New Report" event doesn't work anymore???

When I clicked on "New Report" button in the Designer, the wizard page shows up, I choose to create a blank report, then the report designer did not refresh itself?! I don't understand why this is happening, I didn't customise the New Report event at all...

any help will be great

thanks
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Capturing report new and report open events in the report designer

Post by Vital »

Fixed. Please get build from 20 Feb.

Thank you.
jing
Posts: 50
Joined: Fri Jan 26, 2007 12:47 am
Location: New Zealand

Capturing report new and report open events in the report designer

Post by jing »

Hi,

I have installed build from 21 Feb - the one you sent me through e-mail.
The new button is still not working....
I got this error, "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I didn't install the build from 20 Feb - as I though 21 Feb will be the latest build?

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Capturing report new and report open events in the report designer

Post by Edward »

jing wrote:The new button is still not working....
Fixed.

Please download build from February, 22.

Thank you.
Post Reply