The effect parameter object
Methods:
version
This method set real size.
This method set color.
Parameters:
m.liPaperIndexFit – Paper size index with content size adjustment.
This method set font.
Parameters:
m.lnSize – new contents's size in percent
m.lcRelativePos – define new position of content, values can be: "left", "center", "right", "top", "middle", "bottom" or their combination sepparated by comma.
This method set horizontal and vertical aligment.
Parameters:
m.liPaperIndexChange – Paper size index for paper's change.
m.luOrientaion – orientation; values: "portrait" (0), "landscape" (1), "reverse" (2), "nochange" (3)
m.lcRelativePos – define new position of content, values can be: "left", "center", "right", "top", "middle", "bottom" or their combination sepparated by comma.
This method set text orientation.
Parameters:
m.liPaperIndexFit – Paper size index with content size adjustment.
m.liPaperIndexChange – Paper size index for paper's change.
m.luOrientaion – orientation; values: "portrait" (0), "landscape" (1), "reverse" (2), "nochange" (3)
m.lcRelativePos – define new position of content, values can be: "left", "center", "right", "top", "middle", "bottom" or their combination sepparated by comma.
Properties:
version
Paper size index with content size adjustment.
See to EFFECT Object description.
Effect examples
Code Block |
---|
USE invoices ORDER customer LOCAL m.loSession, m.lnRetval, m.loXFF, m.loPreview, m.loScripts m.loSession=EVALUATE([xfrx("XFRX#LISTENER")]) m.lnRetVal = m.loSession.SetParams("",,,,,,"XFF") && no name = just in memory IF m.lnRetVal = 0 REPORT FORM invoices OBJECT m.loSession m.loXFF = m.loSession.oxfDocument * * initialize the previewer * SET CLASSLIB TO xfrxlib ADDITIVE m.loPreview = CREATEOBJECT("frmMPPreviewer") m.loPreview.windowType = 0 m.loPreview.iBook = 0 WITH loPreview.oExportOptions .oEffect.lShowPreview=.T. .oEffect.SetFitToPaper(11) && fit to paper to A5 ENDWITH m.loPreview.PreviewXFF(loXFF) m.loPreview.show(1) ENDIF |