I'm capturing the event below
Private Sub RadRichTextEditor1_CommandExecuting(sender As Object, e As Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs) Handles RadRichTextEditor1.CommandExecuting
If TypeOf e.Command Is SaveCommand Then
If e.CommandParameter = "pdf" Then
'allow export to pdf
Else
e.Cancel = True
End If
End If
End Sub
I was hoping to find
If TypeOf e.Command Is SaveASCommand - but from what I can see, that doesn't exist.
The problem is - if the user clicks the Save Button or BackStage Save - I'm doing special processing to the database.
But if they click on Save As - It indicates that the user wants to 'export' the document to a pdf or to a word .docx
But in both cases - e.command is always SaveCommand.
It would have been nice to have a (1) SaveCommand and (2) SaveAsCommand
Anyway, is there any event that I can tap into so that these 2 methods can be dealt with differently?
I did add a handler for the SaveButton itself... and that works just fine.
AddHandler RichTextEditorRibbonBar1.QuickAccessToolBarItems(0).MouseDown, AddressOf SaveButton_MouseDown
Maybe you can show me how to create an addhandler for the BackStage Save Menu Option
And
For the BackStage SaveAs Menu Option
That would be of great help and probably solve my special handling needs.