Back to Devexpress

Obtain a Label's Text in Print Preview

xtrareports-5528-feature-guide-to-devexpress-reports-provide-interactivity-obtain-a-labels-text-in-print-preview.md

latest1.1 KB
Original Source

Obtain a Label's Text in Print Preview

  • Feb 18, 2026
  • 2 minutes to read

To obtain a label’s text when clicking it in Print Preview, do the following:

  1. Create a new application or open an existing application. For more information, review the following help topic: Get Started with DevExpress Reporting.

  2. Add a new blank report to the application.

  3. Drop two XRLabel controls from the DX.25.2: Report Controls Toolbox tab onto the Detail band.

  4. To get a label’s content in Print Preview, do one of the following (depending on the target platform):

See Also

Print Preview Mouse Events