xtrareports-2589-feature-guide-to-devexpress-reports-use-report-controls-add-controls-to-a-report.md
This document describes how to add controls to a report.
Use the DX.25.2: Report Controls tab in Visual Studio’s Toolbox to add controls to your report.
Note
If you don’t see Report Controls on the Toolbox, see Troubleshoot Toolbox Items in Visual Studio - DevExpress Unified Component Installer for more information.
You can drag fields from the Field List onto your report to add data-bound controls, after you bound your report to a datasource.
Drag a field from the Field List and drop it onto the report’s surface.
To add a control of specific type, do either of the following:
This invokes a context menu where you can select which control to add.
See the Bind Report Controls to Data Using Expression Bindings topic for more information on how to bind a control to data.
Hold the CTRL or SHIFT key and click several fields. Drop them onto the report’s surface to add a table with its cells bound to these fields.
Drop an entire data table from the Field List to add a report table with columns bound to the data table’s fields.
To add column headers, do either of the following:
This adds a new table whose cells display the field names.
You can add text and graphics from external applications to your reports:
Drag a file, text or image from an external application onto your report.
Copy a file, text or image from an external application, and paste it into your report.
The following table shows which file types transform into report controls:
|
File Type
|
Control
| | --- | --- | |
.TXT
|
An XRLabel control that contains file contents.
| |
|
An XRPdfContent control that contains PDF content.
| |
.DOC, .DOCX, .RTF, .HTM, .HTML
|
An XRRichText control that contains file content.
| |
.JPG, .PNG, .BMP, .GIF, .TIF, .SVG
|
An XRPictureBox control that contains the image.
|
Tutorials that explain how to use different report elements in EUD Report Designers for WinForms and Web are included in the End-User Documentation online help section:
See Also