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
SavedEvent Event only fires on Save As
SavedEvent Event only fires on Save As
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.
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.
SavedEvent Event only fires on Save As
Hello, Fuhrj.
The issue is confirmed, we will inform you when the solution is ready.
Thank you.
The issue is confirmed, we will inform you when the solution is ready.
Thank you.
SavedEvent Event only fires on Save As
Hello,
Problem fixed. Patch will be included in next prerelease build.
Thank you.
Problem fixed. Patch will be included in next prerelease build.
Thank you.