Click or drag to resize

PdfWebControlSaved Event

Informational event which occurs when a document is saved. This event is called via a client callback from a PdfWebControl and hence will only be raised in an ASP.NET Web Forms application.

Namespace:  RadPdf.Web.UI
Assembly:  RadPdf (in RadPdf.dll) Version: 3.43.0.0 (3.43.0.0)
Syntax
public event EventHandler<DocumentSavedEventArgs> Saved

Value

Type: SystemEventHandlerDocumentSavedEventArgs
Remarks

This event will fire after a document is saved or downloaded and has been completely saved; this event can not be canceled.

When this event fires, it occurs inside of an ASP.NET Web Form Callback. This event will not be raised outside of an ASP.NET Web Form application.

Code inside handlers for this event must not make changes to any controls which affect the rendered HTML, viewstate, or control state. This means that changes made to web controls will not be reflected in the page, its viewstate, or the client browser. Additionally, changes must not be made to the response (e.g. writes, redirects, etc).

This event should be used to do things such as saving the document's output data to a database, document post-processing, etc.

Because this event is called asynchronously from the client after the save has already been processed by the server, it is possible for this event not to be raised even if a save did occur (e.g. script error, connection loss, postback occurs before callback, etc). If you do not need access to elements on the ASP.NET Web Form Page, you should consider implementing a custom PdfIntegrationProvider which overrides the OnDocumentSaved(DocumentSavedEventArgs) method instead, which does not have this limitation.

See Also