Closing Designer in Code in custom save window
Posted: Thu Oct 31, 2024 8:00 pm
Hello,
i have a custom savehandler in which i open window where additional settings can be set and the report is saved into the database using this:
I open the designer using
In the handler the save dialog window is successfully opened.
This works fine except one part the designer is still open.
How do i close the designer?
StiOptions.Engine.GlobalEvents.InvokeClosingDesigner(ReportDesigner.Designer, test) doesnt seem to work.
i have a custom savehandler in which i open window where additional settings can be set and the report is saved into the database using this:
Code: Select all
AddHandler StiOptions.Engine.GlobalEvents.SavingReportInDesigner, AddressOf SaveReportHandler
Code: Select all
ReportDesigner.DesignV2WithWpf()
Code: Select all
Private Sub SaveReportHandler(ByVal sender As Object, ByVal args As StiSavingObjectEventArgs)
Dim SpeichernDialog As New DesignerSpeichern()
If SpeichernDialog.ShowDialog() = DialogResult.OK Then
args.Processed = True
Dim test As New System.ComponentModel.CancelEventArgs
test.Cancel = False
StiOptions.Engine.GlobalEvents.InvokeClosingDesigner(ReportDesigner.Designer, test)
Me.Close()
Else
args.Processed = False
End If
End Sub
How do i close the designer?
StiOptions.Engine.GlobalEvents.InvokeClosingDesigner(ReportDesigner.Designer, test) doesnt seem to work.