Skip to main content
A newer version of this page is available. .

XRControlEvents.OnBeforePrint Property

Gets or sets the name of the script used to handle the XRControl.BeforePrint event.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[DefaultValue("")]
public virtual string OnBeforePrint { get; set; }

Property Value

Type Default Description
String String.Empty

A String representing the name of the script for this event.

Remarks

Use the OnBeforePrint property to assign the name of the script to be executed when the XRControl.BeforePrint event is raised.

To learn more, refer to Using Report Scripts.

Example

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OnBeforePrint property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also