Page 1 of 1
Printing on 10"x6" paper
Posted: Tue Jun 16, 2009 5:32 am
by sudip
Hi All,
I want to print cash memo or money receipts on 10"x6" (ie., 10" width and 6" height) paper. How can I use this paper size programatically?
TIA.
With best regards.
Sudip
Re: Printing on 10"x6" paper
Posted: Tue Jun 16, 2009 5:50 am
by Rathinagiri
Had you used "PRINTER_PAPER_USER"?
From HMG Doc.
Code: Select all
SELECT PRINTER <cPrinter> | DEFAULT
[ TO <lSuccessVar> ]
[ ORIENTATION <nOrientation> ]
[ PAPERSIZE <nPaperSize> ]
[ PAPERLENGTH <nPaperLength> ]
[ PAPERWIDTH <nPaperWidth> ]
[ COPIES <nCopies> ]
[ DEFAULTSOURCE <nDefaultSource> ]
[ QUALITY <nQuality> ]
[ COLOR <nColor> ]
[ DUPLEX <nDuplex> ]
[ COLLATE <nCollate> ]
[ PREVIEW ]
PAPERLENGTH / PAPERWIDTH: Sets a custom paper length/width (millimeters).
To use custom paper size, you must specify PRINTER_PAPER_USER as paper size.
Re: Printing on 10"x6" paper
Posted: Tue Jun 16, 2009 7:54 am
by sudip
Hello Rathi,
Thanks a lot. I should check documentation before asking

. Now, it works fine with following code.
Code: Select all
SELECT PRINTER mPrinter ORIENTATION PRINTER_ORIENT_PORTRAIT PREVIEW PAPERSIZE PRINTER_PAPER_USER PAPERLENGTH (6*25.4) PAPERWIDTH (10*25.4)
With best regards.
Sudip
Re: Printing on 10"x6" paper
Posted: Mon Jan 19, 2015 9:56 am
by bels79
asked to print back and forth in the " SELECT PRINTER PREVIEW mPrinter ORIENTATION PRINTER_ORIENT_PORTRAIT PAPERSIZE PRINTER_PAPER_USER PAPERLENGTH ( 6 * 25.4 ) PAPERWIDTH ( 10 * 25.4 ) " add command ---> DUPLEX 1 ?
and how to let the print right justify
tq