BeforeSaveFile Event - .NET

<< Click to Display Table of Contents >>

Navigation:  Events Generated by the .NET Control >

BeforeSaveFile Event - .NET

Previous pageReturn to chapter overviewNext page

[Not supported by VpeWebControl]

Is fired when the user clicked the Save File button in the toolbar (or pushed the corresponding key).

CancelEventHandler VPE. BeforeSaveFile(

object sender,

System.ComponentModel.CancelEventArgs e

)

object sender

the VPE document object that fired the event

System.ComponentModel.CancelEventArgs e

event data, see .NET documentation

You can set e.Cancel = true if you want to cancel the event, i.e. deny that the file save dialog will be shown. Cancelling the operation allows you to display your own save dialog and to export your own document, for example to a memory stream and from there to a database.

Example:

Protected Sub vpe_BeforeSaveFile (sender As Object, e As CancelEventArgs)

 e.Cancel = True

End Sub

 

See also:

SaveFileName