TE Edit Control Java / HTML-JavaScript Help
Product page

TerSetSect

Set section parameters.

boolean TerSetSect( NumCols, ColSpace, NewPage)
boolean TerSetSectEx( NumCols, ColSpace, NewPage, FirstPageNo)
boolean TerSetSect2( NumCols, ColSpace, NewPage, FirstPageNo, FirstPageBin, NextPageBin)
boolean TerSetSect3( NumCols, ColSpace, NewPage, SetBins, FirstPageNo, FirstPageBin, NextPageBin, SectId, size)
boolean TerSetSect3( NumCols, ColSpace, NewPage, SetBins, FirstPageNo, FirstPageBin, NextPageBin, SectId, size, IsPortrait)
int NumCols;number of columns for the section. Set to 0 to show a user dialog. Set to -1 to leave this value unchanged.
int ColSpace;Space between the columns in Twips.
boolean NewPage;true to begin the section on a new page.
int FirstPageNo;Page number for the first page of the current section. Set to 0 to use default page numbering.
boolean SetBins;Set to true to apply the FirstPageBin and NextPageBin parameters.
int FirstPageBin;/ Bin selection to print the first page of this section. Set to MediaTray enumeration.
int NextPageBin;Bin selection to print the subsequent pages of this section. Set to MediaTray enumeration.
int SectId;Section id (0 to TotalSect-1). Set to -1 to use the current section.
int size;Not used. Set to 0.
boolean IsPortrait;Set to true to use the portrait orientation. set to false to apply landscape orientation.

Example:

  tej.TerSetSect(2,720,true);

The above statement sets the current section to use 2 column layout.

  tej.TerSetSect3(1, 0,true,1, false,
              MediaTray.MAIN,
              MediaTray.MAIN,
              0,0,
              false);

The above statement modifies section id 0. It applies the landscape orientation. The paper bin application is disabled by setting the SetBins to false.

Return Value: The function returns true when successful.