Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFCustomViewer.OnAttachmentOpen Event

In This Article

Enables you to respond to an attempt to open a file attached to the opened PDF document.

#Declaration

Delphi
property OnAttachmentOpen: TdxPDFViewerOnAttachmentActionEvent read; write;

#Remarks

This event occurs before the control invokes the external application to open a file attachment every time a user clicks:

  • The active “Open File” button on the Attachments page of the Navigation pane;

  • The “Open File” item in the context menu invoked for a file attachment annotation in the opened document or for a file listed on the Attachments page.

You can pass True as the AHandled parameter within an OnAttachmentOpen event handler to forbid users to open all or only specific file attachments in external applications. Refer to the TdxPDFViewerOnAttachmentActionEvent procedural type description for detailed information on all parameters accessible within an OnAttachmentOpen event handler.

See Also