Subject |
Re: _pdriver does not work |
From |
Mervyn Bick <invalid@invalid.invalid> |
Date |
Wed, 21 Feb 2018 12:14:28 +0200 |
Newsgroups |
dbase.getting-started |
On 2018-02-21 11:13 AM, Mustansir Ghor wrote:
> Dear Peter
>
> Thank you for example given. It is working all well. But main problem still persists. It does recognize paper size. I wonder, are you using USB port or parallel port (LPT!). I am testing on USB port.
>
> I went further to try to set printer setting ( Devices & Printers) for custom paper size of H= 4" , W= 8.5" named it as bchc and used this in tractor feed. When I did Test print (from Windows) , it worked fine and Test print came out on 4" tractor feed paper and tear off position was correct.
>
> So now I opened report engine and set printer to EPSON LQ-690 ESC/P2, made page template to H = 4" and W = 8.5" , when it printed it did not work and it stopped at A4 settings.
>
> I then thought of changing paper size on printer property and select bchc the name that I had set for paper size in Windows printer, however this name did not appear.
>
> Please can anybody guide on this subject as how to make dBase 11.3 understand that for the printer chosen, its paper size is H= 4" and w=8.5"
If your printer understands Epson's ESC/P2 you can set the page length
in inches. It will almost certainly understand ESC/P in which case you
can set the page length in lines.
The ESP/P instruction to set the page length in lines is
ESC C n where n is between 1 and 127
The ESC/P instruction to set the right margin
ESC Q n where n is the number of characters
The ESC/P instruction to set the left margin is
ESC I n where n is the number of characters. Default is 1
It's MANY years since I last had to send control codes to a printer so
the syntax below may need some work. :-(
The default number of lines per inch is 6 so the following should set
the page length to 44 lines ie 4 inches.
set console off
set print on
? chr(27)+'C44'
? chr(27)+'Q80'
set print off
set console on
If you haven't got the ESC/P manual for your printer, Google
epson esc/p manual
Mervyn.
|
|