Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Transform content to new paper size.XFRX version: 22.0


Code Block
XFRXDraw::Object.FitToPaperSize(liPaperSizeIndex [, lnPageWidth [, lnPageHeight  
                         [, lcPageScope [, laPS ]]]])

Return values

...

Parameters

liPaperSizeIndex
   Paper size index.

...

laPS
 A array  contains papers size. If the parameter is empty, then XFRX use internal list of paper size.

Return values

.F. ... paper size was not changed
.T. ... paper size was changed

Remarks

Applies To: XFRX#DRAW

XFRX version: 22.0

See also: ChangePaperSizeZoomContent

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
 
   m.loXFF.FitToPaperSize(11) && fit to paper to A5
   m.loXFF.SavePicture("somepage.jpeg", "jpg", 1, 1) && save to file

   RELEASE m.loXFF 
ENDIF
RELEASE m.loSession