SavedEvent Event only fires on Save As

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

SavedEvent Event only fires on Save As

Post by fuhrj »

I've noticed some odd behavior associated with the SavedReport event hander.

Here is my code:

StiDesigner.SavedReport += new EventHandler(StiDesigner_SavedReport);

1) If you save a new report for the very first time, the event fires for either Save or Save As.

If you load a report, and do Save, the event does not fire. However, if you do a Save As, it does fire.

My guess on why it works for a new report is that when you do a Save it actually does a Save As.


2) The other odd behavior I noticed is that if you perform a Save As on a loaded report, the SavedReport handler fires two or three times. The first time it fires, the designer object is null. The second time it fires, the designer object is instantiated.

So for example: string filename = report.Designer.ReportFileName throws an exception the first time because Designer is null. But the second time it fires, it is there.

Are these known issues and if so, is there a workaround?

Thanks,
Jaime
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

SavedEvent Event only fires on Save As

Post by fuhrj »

Update:

After downloading Stimulsoft Reports.Net 2008.06.08 D2005_EngineV2 dlls, the second part of my question has been resolved.

I was using 2008.01.200.0 dlls from the demo download.

However, the handler still does not fire when performing a Save.

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

SavedEvent Event only fires on Save As

Post by Edward »

Hello, Fuhrj.

The issue is confirmed, we will inform you when the solution is ready.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

SavedEvent Event only fires on Save As

Post by Vital »

Hello,

Problem fixed. Patch will be included in next prerelease build.

Thank you.
Post Reply