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
Printing on 10"x6" paper
Moderator: Rathinagiri
Printing on 10"x6" paper
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Printing on 10"x6" paper
Had you used "PRINTER_PAPER_USER"?
From HMG Doc.
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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Printing on 10"x6" paper
Hello Rathi,
Thanks a lot. I should check documentation before asking
. Now, it works fine with following code.
With best regards.
Sudip
Thanks a lot. I should check documentation before asking


Code: Select all
SELECT PRINTER mPrinter ORIENTATION PRINTER_ORIENT_PORTRAIT PREVIEW PAPERSIZE PRINTER_PAPER_USER PAPERLENGTH (6*25.4) PAPERWIDTH (10*25.4)
Sudip
With best regards,
Sudip
Sudip
Re: Printing on 10"x6" paper
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
and how to let the print right justify
tq