View Single Post
  #5  
Old January 29th, 2016, 10:36 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Page Number & Rules

Quote:
Originally Posted by Landisa View Post
Could this theory be applied to a set of OMR marks (essentially a table with borders that change from 3-fin marks on page 1 and 2-fin marks on pages 2-N)?
Sure, you could determine the number of marks (rows) to add based on what page the record is on:
Code:
var pg = FusionPro.Composition.currentPageNumber;
var rows = !--pg+2;

var OMR = new FPTable();
OMR.AddColumns(7200);
for (var i=0; i<rows; i++) {
    var row = OMR.AddRow();
    row.minHeight = 1800; //specified in hundredths of a point
    row.Cells[0].SetBorders('Medium', 'Black', 'Top');
}
return pg%2 ? OMR.MakeTags() : '';
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote