Property of the ScriptLine : DiaryGridLines.
This property replaces the Begin Rule/End Rule property when a DiaryGridLine is part of an Insert block. While the Begin/End Rules are based on the Year property, the Insertion Rule are based on the dates that triggered the insertion occurrence. That date can be caused by one of the following properties : Specific Dates, Repeating Dates, Variable Dates.
Options for Daily and Monthly Inserts
Options for Weekly Inserts
While the Begin/End Rules property determine a starting date and an ending date, the Insertion Rule property defines the starting date using the First Grid option, and then repeats this grid a number of times determined by the Number of Grids option, to generate within the insertion block. The settings "Current – x" and "Current + x" are easy to understand from the above. Note that it is possible to have insertions overlap; for example, you may have decided to insert 2 grids of a monthly grid every month. You would then have Jan-Feb at the end of January, Feb-Mar at the end of February, etc…
For example, suppose we have an occurrence of the Insert ScriptLine on Tuesday May 22nd, then if the current grid is a monthly, then Q++Studio would generate a full monthly grid beginning at the month of May.
In the case of weekly inserts, the Month Fit additional option allows you to specify that the required number of weekly grids (4, 5, or 6 depending on the month and year) will automatically be inserted. In addition, you will then be able to specify special formatting for days before and after the month.