< All Topics
Print

Sub Template – Position of Object on Page

Sub Template – Position of Object on Page

Sub Template – Position of Object on Page

Overview

According to a very old convention, after loading a sub-template, object calculation is performed. The process involves determining the minimum LEFT position of the objects in the sub-template, and then calculating the left offset. The offset is the difference between the X1 position of the sub-template in the main template and the minimum left position. Subsequently, all objects in the sub-template are shifted horizontally by this offset.

Avoiding Object Shifting

To prevent this horizontal shifting of objects, the "Column Number" property of the section must be set to -1. By default, this property is set to 1. When working with a sub-template imported from WORD, this parameter must be set for all sections of the sub-template.

Example Section Configuration

An example configuration block is shown below:


[Block 0]

ID=0
PFD=0
PFP=0
PHD=0
PHP=0
Name=Section1
Parent=-1
FillRow=0
PrintNext=0
BlockIndex=0
Permission=0
ColumnNumber=-1 (Default Value = 1)
TriggerField=
ColumnPadding=0
TriggerScript=
OriginalHeight=0
PrintOnOnePage=1
SkipEmptyLines=0
SearchInSection=0
TriggerFieldValue=
TreeIndicatorColor=0
InSectionRelativity=0
    

Visual Representation

The following image illustrates the process of shifting objects and how setting the Column Number to -1 prevents this behavior:

Object Shifting Process

Conclusion

By configuring the Column Number property to -1, you can prevent unwanted horizontal shifts in sub-template objects. This adjustment ensures accurate positioning and alignment of objects, especially when dealing with sub-templates imported from WORD. Ensure this property is applied consistently across all sections to maintain alignment throughout the template.

תוכן עיניינים