Goo'day Bill,
At 16:50 12/12/05 -0500, you wrote:

The printers are HP LaserJets of diffent models 4200, 4100 mfp, 1320, 4Si.

It appears that what I am trying to do is re-write PCL into PJL.

The PCL bits you need are along the lines of:

ESC:'&l1S': ESC:'a1G':   to duplex along or around the "long" side of the page
ESC:'&l2S': ESC:'a1G':   to duplex along or around the "short" side of the page
ESC:'&l0S':          to turn duplexing off....

That's ampersand, lower case letter "L", number one or two or zero, uppercase letter "S" and lower case letter "A", number one, uppercase letter "G"...

PJL?    Dunno!

HTH...

Per the following code cribbed from Raining Data, I can print a text string
in portrait or landscape via the following.

Tweaking this code to handle duplexing is what is needed.

    Esc = char(27)

    PJL.Cmd = '@PJL '
    UEL.Cmd = Esc : '%-12345X'
    PJL.TYPE = 'DEFAULT '

    PO.ID = 'YYY'

    execute "SETPTR ,80,60,2,0,1,BRIEF,NHEAD,NFMT,NOEJECT,AS PO_":PO.ID:",AT
FRONT"

    printer on

    print UEL.Cmd : PJL.Cmd

    PRINT PJL.Cmd : 'DEFAULT ORIENTATION=PORTRAIT'

    PRINT UEL.Cmd

    PRINT 'XXX'

    END

--Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George Gallen
Sent: Monday, December 12, 2005 3:47 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UniBasic PCL/PJL


and the printer..

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Kevin King
> Sent: Monday, December 12, 2005 3:04 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] UniBasic PCL/PJL
>
>
> Bill, could you be more specific as to the kinds of problems you're
> having?
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: 12/12/05

Regards,

Bruce Nichol
Talon Computer Services
ALBURY        NSW     2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is!

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.371 / Virus Database: 267.13.13/198 - Release Date: 12/12/05
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to