2022.2

Table Of Contents
Pagination
ThePaginationobjectthatisaccessedviathemergeobject(see"merge"onthepreviouspage)con-
tainsthetotalpagecountandsheetcountoftheentire Print contextafterpagination.Theseprop-
ertiesareread-onlyandareonlyavailableinPostPaginationScripts(see"PostPaginationScripts"on
page410).
Forinformationaboutwhereanelementislocatedandthecountsofpagesandsheetsinapage
bundle-agroupofsectionsinwhichthepagenumberingcontinues-use"info()"onpage847.
Forthetotalpagecount,sheetcountandstart/endpagenumbersofasingle section,usethesec-
tionobject's"Pagination"onpage855(seealso:"section"onpage848).
Field Type Description
pageCount
Number
The total number of pages in all Print sections together.
sheetCount
Number ThetotalnumberofsheetsinallPrintsectionstogether.
Generating output
Whenmergedwitharecordset,thetemplatesmadeintheDesignercangeneratetwotypesofoutput:
PrintandEmail.
Print output
Connectsupportsanumberofdifferenttypesofprintoutputs.Theseinclude:
l
AFP
l
IPDS(spoolfilecreatedbyConnect,withprintercontrolavailablethroughthe"PrintManager"on
page886)
l
PCL
l
PDF
l
PostScript(includingthePPML,VIPPandVPSvariants)
Printtemplates(alsocalledPrintsections),arepartofthePrintcontext.Theyaremeanttobeprinted
directlytoaprinteroraprinterstream/spoolfile,ortoaPDFfile(see"GeneratingPrintoutput"onthe
facingpage).
ThePrintcontextcanalsobeaddedtoEmailoutputasaPDFattachment;see"GeneratingEmailout-
put"onpage876.
WhengeneratingoutputfromthePrintcontext,eachofthePrintsectionsisaddedtotheoutputdoc-
ument,oneaftertheotherinsequence,foreachrecord.
Todynamicallyselectasectionforoutput,useaControlScript;see"ControlScripts"onpage398.
Page 856