View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Edit Content in Print Preview

This document provides information about interactive document editing in Print Preview that enables you to customize field values directly in a previewed document before printing or exporting it.

Content Editing Overview

When content editing is enabled for a report control (either unbound or data-aware), it is possible to customize the corresponding field values in Print Preview.

To enable content editing for a report control, expand its EditOptions property and set the Enabled property to true.

eurd-win-content-editing-enable

When the EditOptions.Enabled property is set to true and the EditOptions.ReadOnly property is disabled, the control’s content can be edited in Print Preview (clicking a field will invoke the appropriate editor).

The following standard editors can be assigned to a control, depending on the kind of content it displays.

Memo Edit Check Box
eurd-win-content-editing-memoedit eurd-win-content-editing-checkboxe

To highlight all editing fields available in a document, click the Editing Fields button on the Print Preview toolbar. This button is disabled when there are no such fields in a document.

eurd-win-content-editing-fields-highlight-ribbon

To navigate between editing fields in Print Preview, use the TAB and SHIFT+TAB keys.

Content Editing Specifics

When enabling content editing in your report, consider the following.

To learn about the specifics of editing different kinds of content, see the following sections in this document.

Text Editing

The Label, Table Cell and Character Comb controls can be assigned editors to customize their content in Print Preview.

To enable content editing for these controls, expand their EditOptions property and set the Enabled property to true.

eurd-win-content-editing-enable

The following editors can be used to customize a field’s content in Print Preview.

[!NOTE] If a table cell contains other controls, its editing is disabled (but not the editing of the controls contained in this cell), which is illustrated in the following image.

eurd-win-content-editing-table-cell-container

Check Box Editing

The Check Box control’s value can be edited in Print Preview.

To enable content editing for a check box, expand its EditOptions property and set the Enabled property to true.

eurd-win-content-editing-enable-checkbox

In Print Preview, the control’s behavior depends on the GroupID setting.