aReturnConfirmed SetPrint options.
AdvPL GuideSetDefault(aReturn,[cAlias],[uPar1],[uPar2],[cTamanho],[nFormato])Applies legacy report options.
In the manual, SetPrint populates aReturn and SetDefault prepares printing from that array. This is not a default-value function or generic setter. Leave reserved arguments reserved; historical cTamanho values are P/M/G and nFormato is 1 portrait or 2 landscape. The subset requires valid aReturn, confirmed SetPrint and report context; loading it opens no printer. (Sources: refs. 1–1.)
SetDefault(aReturn,[cAlias],[uPar1],[uPar2],[cTamanho],[nFormato])aReturnConfirmed SetPrint options.
cAliasPrinting alias.
uPar1 / uPar2Do not assign a meaning.
cTamanhoP, M or G.
nFormato1 portrait, 2 landscape.
Nil in the historical reference.
#Include "Protheus.ch"
User Function Ed658()
// Uninvoked block: requires already confirmed SetPrint options.
Local bPrepare := {|aOptions,cAlias| SetDefault(aOptions,cAlias,,,"M",1)}
ConOut(ValType(bPrepare))
Return NilCreates block B without applying options or starting printing. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.