nFlagsRequired flags from fwprintsetup.ch.
AdvPL GuideFWPrintSetup():New(nFlags, [cTitle])Configures printing parameters in a dialog.
The page is named FwPrinterSetup but documents FWPrintSetup and uses that identifier in examples; no FwPrinterSetup constructor is invented. Flags and properties use different includes. Activate returns PD_OK or PD_CANCEL, and printing should proceed only for the former. This example prepares/frees configuration without dialog or document submission. Preview and paper output can differ with drivers and communication. (Sources: refs. 1–1.)
FWPrintSetup():New(nFlags, [cTitle])nFlagsRequired flags from fwprintsetup.ch.
cTitleConfiguration title.
FWPrintSetup():New(nFlags,[cTitle])o:Activate() --> nModalResulto:GetProperty(nItem) --> xValue#Include "Protheus.ch"
#Include "fwprintsetup.ch"
User Function Ed446()
// Configuration without Activate or printing.
Local oSetup := FWPrintSetup():New(PD_ISTOTVSPRINTER,"Review")
FreeObj(oSetup)
Return NilConfiguration object freed; no printing started. 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.