EnvironmentSettings.CustomSaveReport event
FastReport 1.8.43 demo version
Hello,
I try to use this event to store the report into a database. Its working so far, but I noticed, that the event is fired several time. Sometimes 2x, sometimes more. What could be the reason for this behavior? I assigned a custom ReportDesigner control to the report control.
With best regards - Ulrich Groffy
Hello,
I try to use this event to store the report into a database. Its working so far, but I noticed, that the event is fired several time. Sometimes 2x, sometimes more. What could be the reason for this behavior? I assigned a custom ReportDesigner control to the report control.
With best regards - Ulrich Groffy
Comments
It should be fired each time when you save the report (or "save as..."). I've checked it in the Demos\C#\CustomOpenSaveDialogs, it works as expected.
you are right its working as expected. The reason is, that I try to open more than one instance of the ReportDesigner at same time. I do create an EnvironmentSettings each time as well, but this seems to bring the problems. If I hook into the Designer.cmdSave.CustomAction, and not using the EnvironmentSettings.CustomSaveReport event its working.
By the way - what is the difference between
- EnvironmentSettings.CustomSaveReport
and
- EnvironmentSettings.DesignerSettings.CustomSaveReport
?
Best regards - Ulrich
actually I'm using the Designer.cmdSave.CustomAction event for saving the report into a database. I noticed, that the save button is still active after executing the saving. Is there any flag I can set to disable the save button again?
Another question is, is there a designer close event, I can use to save the designer settings. There is no filename property for the designer configuration file. Where do the designer control store the settings when executing designer.SaveConfig() method?
With best regards - Ulrich Groffy
at the moment i have the same problem as Groffy... we also use more than one instance of the
report designer in your application.
If i press the save button in a designer window, the save dialog pops up again and again as much as instances of the designer are running.
How can i handle this events separatly for every instance so that i can get rid of this problem?
Thanks in advance,
Markus Lax