<< Click to Display Table of Contents >>

 

This tutorial describes how to create a form that is fillable in Print Preview.

eForm-report-result

 

Add the Label report controls to the report and arrange them according to the form's template. Set the labels' Text property to the form's field names.

EForm-Add-Form-Fields

Use the Character Comb control for the form's text fields. This control displays letters in individual cells and allows you to fill these cells in Print Preview.

1.Drop the Character Comb item from the Toolbox onto the report.

eForm-report-add-character-comb

2.Select all the added Character Combs and set their properties in the Property Grid:

oCell Size Mode

oCell Height,

oCell Width,

oand other cell settings.

eForm-report-character-combs-cell-settings

3.Enable the Character Combs' Edit Options | Enabled property.

eForm-report-character-combs-edit-options-enabled

4.Choose editors for the Character Comb controls' edit mode.

oControls that allow you to enter letters

Invoke a drop-down list for the Editor Name property and select the Only Uppercase Letters item in the Letters category.

eForm-report-character-combs-editor-name-letters

oControls that allow you to enter integers

Invoke a drop-down list for the Editor Name property and select the Positive Integer item in the Numeric category.

eForm-report-character-combs-editor-name-integer-positive

Add Check Box controls for the Male/Female fields.

eForm-report-add-check-boxes

Use the following properties to set up these controls:

Set the Text property.

Set appearance properties.

Enable the Edit Options | Enabled property switch check box states in Print Preview.

Set the Edit Options | Group ID property to the same value to combine these two check boxes into a logical group. This allows you to select only one option at a time.

eForm-report-check-boxes-edit-options

Add the PictureBox report control for the form's Signature field.

EForm-add-signature-picture-box

Do the following to enable drawing in Print Preview:

1.Enable the control's Edit Options | Enabled property.

2.Set the Edit Options | Editor Name property to Signature.

EForm-Signature-content-editing

Switch to the Preview tab to see the result.

eForm-report-result

Click the highlight-fields-icon-bars button on the Print Preview toolbar to highlight all the editable fields on the form.

eForm-report-result

Click a field to invoke its editor.

eForm-report-result

Use TAB and SHIFT+TAB to navigate between editable fields.