Wednesday, March 26, 2008

Restrict search area to a sliver next to a label:

          rightof:label;

          above:label.bottom,-20*dot;

          below:label.top,-20*dot;

 

Only grab a capture element if the label element is found:

          if label.isnull then dontfind;

 

Select the capture element closest to a label element:

          nearest:label;

 

Select the label element closest to the top of the page:

          nearesty:pagerect.top;

 

Select the label element closest to the bottom of the page

          nearesty:pagerect.bottom;

 

Limit the search area to the top half of the page:

          above:pagerect.bottom/2;

 

Limit the search area to the upper right hand quadrant of the page:

          above:pagerect.bottom/2;

          rightof:pagerect.right/2;

 

Choose between two capture areas, combine the results in a third:

          if not firstchoice.isnull then

          restrictsearcharea(firstchoice.rect);

          else if not secondchoice.isnull then

          restrictsearcharea(secondchoice.rect);

          end if

 

Choose between n capture areas:

          if not firstchoice.isnull then

          restrictsearcharea(firstchoice.rect);

          else if not secondchoice.isnull then

          restrictsearcharea(secondchoice.rect);

          else if not thirdchoice.isnull then

          restrictsearcharea(thirdchoice.rect);

          .

          .

          .        

          else if not lastchoice.isnull then

          restrictsearcharea(lastchoice.rect);

          else dontfind;

          end if

 

Expand table borders:

          exactcolumnborders(labelfield.left,-30*dot,labelfield.right,-30*dot,block.tablename.columnname);

Wednesday, March 26, 2008 1:30:52 PM (Mountain Standard Time, UTC-07:00)  #    Comments [0]  | 

Pick a theme: