setPaperSize Method

Use this method to define a user-define page size.

Object.setPaperSize(nUDPaperWidth, nUDPaperHeight
                    [, nUDPaperOrientation [, nUDPaperSize [, lcPrinter]]])

Parameters

nUDPaperWidth

 Paper width.

nUDPaperHeight

 Paper height (length).

nUDPaperOrientation

 Paper orientation (XFRX 15.5).

nUDPaperSize

 Paper Size (XFRX 18.3)

lcPrinter

 Printer name (XFRX 18.3).

Remarks

Applies To: XFRX#INIT, XFRX#LISTENER, oXFRX

XFRX version: 24.0 for oXFRX


Please see User-defined page size paragraph on page 18 (nad) for more information.

It's possible set paper width, paper height, paper orientaion and paper size of specified printer.

Or is possibly set paper size for specified printer (parameter m.lcPrinter)

Examples

LOCAL m.lnErr
m.loXFRX=EVALUATE([xfrx("XFRX#INIT")])

m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"XFF")

IF m.lnErr<>0
   ?m.loXFRX.ErrorMessage(m.lnErr)
ELSE
   * set custom paper size
   m.loXFRX.setPaperSize(2710*10000/254, 2100*10000/254 )

   * set specific paper size 
   m.loXFRX.setPaperSize(762*10000/254, 1270*10000/254, 0, 261 )

   * set specific paper size by printer
   m.loXFRX.setPaperSize(0, 0, 0, 261, 'Brother DCP-7030 Printer' )
ENDIF