ActiveReports 18 .NET Edition
Report Authors: Designer Components / Design Reports / Design Section Reports / Tutorials: Report Controls in Section Reports / InputFieldCheckBox Control in Reports
In This Topic
    InputFieldCheckBox Control in Reports
    In This Topic

    We are going to create a PDF form, using the InputFieldCheckBox controls, where a user, besides entering text information, may also specify Yes (check) or No (uncheck) for such information like Sex, Employment Status, etc.

    The final report will look as shown.

    PDF Forms Report with InputFieldCheckBox controls 

    Design Report Layout

    1. Drag and drop the Label control onto the report designer and set its Text property to Renter's section. This is the form's heading.
    2. Drag and drop the Label controls below the Renter's section text; these controls will be the captions to the user's answers. Set these control's Text property to the following values:
      • Label2: Full Name
      • Label3: Address
      • Label4: City
      • Label5: State
      • Label6: Zip
      • Label7: Phone
      • Label8: Email
    3. Now drag and drop the InputFieldText controls next to the Label controls added at the previous step. These blank fields are required to be filled by the users filling the form.
    4. Drag and drop some more Label controls and set them to the following values in the Text property.
      • Label9: Sex
      • Label10: Male
      • Label11: Female   
    5. Now drag and drop the InputFieldCheckBox controls next to the Labels added at the previous step. These blank fields are required to be filled as yes or no using the checkboxes.
    6. Set Required property for some fields that you want to make mandatory before submitting the form.
    7. Improve the appearance of the controls and preview the report.
    8. Export the report to PDF format. Users can now enter the text in the blank fields and also enter their choices as Yes (check) or No (uncheck) in the editable checkboxes.
    See Also