Report in the database
Hi,
I decided to store a report in the database and i use version 1.0.229
I see the section in programmer's manual and i put EnvironmentSettings in my form (where is a DesignerControl).
I tried to replace CustomSaveDialog and CustomSaveReport events but nothing changes.
Have you a code example?
Thanks
I decided to store a report in the database and i use version 1.0.229
I see the section in programmer's manual and i put EnvironmentSettings in my form (where is a DesignerControl).
I tried to replace CustomSaveDialog and CustomSaveReport events but nothing changes.
Have you a code example?
Thanks
Comments
I've modified the demo program in the following way, the dialogs work as expected. Note that I've used the Config.DesignerSettings instead of EnvironmentSettings component - this is the same:
i couldn't figure it out in VB.NET.
Could you please post a sample?
What components do i need on the relating form?
i've declared a report-object in which i load a report.
i placed also an environmentsettings-object on the form
i call the designer with
in the event i put the following to see when it gets fired
but nothing happen.
could please someone point me to the right direction.
many thanx.
Unfortunately, EnvironmentSettings object is not working in VB.NET. Event handlers connected to this object will never fire. You need to use Config.DesignerSettings events instead, as indicated in the previous post sample. Here is equivalent VB.Net code (translated using Reflector utility):
thank you for the quick response.
it seems to work but now the Event gets fired wherever i addad the (global) EventHandler.
So if i have added the eventhandler in 2 classes the events get always fired in both classes not only in the to the report corresponding.
But this is actually no big problem - maybe you'll find a better solution in a future release.
Is there a way to Import a Report from an File to an existing Report stored in a database??
These events are global, you need to attach them only once. Once you did this, the standard open/save dialogs will be replaced with your own.
I don't know what you mean by importing one report to another. Please describe in details.