Subforms (Global and Local)
    • 04 Mar 2025
    • 1 Minute to read
    • Contributors
    • PDF

    Subforms (Global and Local)

    • PDF

    Article summary

    To simplify your daily routines when creating documents and reports with the same repeating text, fragments, or the other elements, you can use both global and local subforms designed for this purpose.

    In this exercise, you can learn how to add and edit both local and global subforms to a new sheet.

    Exercise

    Download and import the attached configuration called 36. Subforms (Global and Local) in Lasernet Developer 9. Afterward, navigate to the Forms section and open the Sample form.

    Once you are done, proceed through the following steps:

    1.  Add a new sheet. To this end, right-click the Sheet 1 tab in the input, and then click Add on the context menu that appears.

    1. As a result, the Sheet Options dialog opens. Click Ok to confirm adding a new sheet.

    1. Insert local and global forms to the new sheet. To this end, on the Developer bar, click Subforms, and then click Insert Global Subform….

    Once a cursor becomes a cross, click the output. As a result, the Subforms dialog appears.

    1. When the Subform dialog is displayed, select the Logo subform on the left panel, and then click the Ok button.

    1. To insert a local subform, click Subforms on the Developer bar and then click Insert Local Subform….

    Once a cursor becomes a cross, click the output. As a result, the Subform dialog appears.

    1. When the Subform dialog is displayed, select the Header subform on the left panel, and then click the Ok button.

    1. Change the position for the Header local subform. To this end, right-click the subform and then click Position on the context menu that appears. Specify the position values as shown in the following image.

    1. On the View menu, select the Object boxes checkbox to view all the elements belonging to the subform.

    As a result, you can see two subforms added to a new sheet.

    Note

    Pay your attention to a position of the static form that is fixed as you set it in the previous exercise.