Effect

There are five types of effects: real size, fit to paper, normal size, change paper and fit to paper and change.

Real size
 The size of the content does not change

Fit to paper 
 The content will be resized to fit the new paper size.

Normal size 
 The size of the content will be adjusted according to the selected scale in percentage. Subsequently, the new position of the content on the page can be determined.

Change paper
 Sets the paper size, you can also specify a new paper orientation. Subsequently, the new position of the content on the page can be determined.

Fit to paper and change
 Combine "Fit To Paper" and "Change paper".

For simpler settings, you can use the appropriate methods described below.

Print and export has separate effect settings.

The effect parameter object

See to EFFECT Object description.

Effect examples

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