TerSetSect
Set section parameters.
bool TerSetSect( NumCols, ColSpace, NewPage)
bool TerSetSectEx( NumCols, ColSpace, NewPage, FirstPageNo)
bool TerSetSect2( NumCols, ColSpace, NewPage, FirstPageNo, FirstPageBin, NextPageBin)
bool TerSetSect3( NumCols, ColSpace, NewPage, SetBins, FirstPageNo, FirstPageBin, NextPageBin, SectId, size)
bool 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. |
bool 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. |
bool 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 PaperSourceKind enumeration. |
int NextPageBin; | Bin selection to print the subsequent pages of this section. Set to PaperSourceKind enumeration. |
int SectId; | Section id (0 to TotalSect-1). Set to -1 to use the current section. |
PaperSize size; | paper size. Set to null to leave the paper size unchanged. |
bool IsPortrait; | Set to true to use the portrait orientation. set to false to apply landscape orientation. |
Example:
tern.TerSetSect(2,720,true);
The above statement sets the current section to use 2 column layout.
tern.TerSetSect3(1, 0,true,1, false,
PaperSourceKind.AutomaticFeed,
PaperSourceKind.AutomaticFeed,
0,new PaperSize("Custom Paper",800,1000),
false);The above statement modifies section id 0. It applies custom size paper in landscape orientation. The paper bin application is disabled by setting the SetBins to false.
Return Value: The function returns true when successful.