+ Reply to Thread
Results 1 to 4 of 4

Thread: RPG - Network Laser Printer Control

  1. #1
    Guest.Visitor Guest

    Default RPG - Network Laser Printer Control

    I have an application that used to do some very nice printer control using a twin-axial connection card that recognized printable character sequences inserted in a spool file as printer control commands. As our company phases out twin-ax and moves to network connected printers, I loose this functionality. I have tried embedding regular printer control codes in spool files, but they seem to be ignored by the printer. Has anyone found a configuration and/or strategy for controlling font, pitch, page orientation etc. on a network connected laser printer from an RPG program?

  2. #2

    Default RPG - Network Laser Printer Control

    Probably the easiest way is to define the printer device with Host Print Transform enabled: CRTDEVPRT ... TRANSFORM(*YES) and 'Manufacturer type and model' MFRTYPMDL(*HPIII) set to what ever printer you're actually using, HP III for example. This will transform the print stream from SCS - the native AS400 print stream - to the print stream used by that particular manufacturer type and model printer...PCL in the case of most laser printers. Then create a printer file in DDS. Be sure the 'Printer device type' DEVTYPE(*AFPDS) is set to *AFPDS when you CRTPRTF. Then go ahead and use the DDS keywords for FONT, PAGRTT (page rotation), TXTRTT(field rotation), LINE, BARCODE etc. This has worked for me in the past so it should work for you - if I haven't left anything out!

  3. #3
    Guest.Visitor Guest

    Default RPG - Network Laser Printer Control

    Todd, If what Tom said doesn't apply for you, do a search of the forums. I gave the details on how to accomplish this complete with a code sample. One of the big keys is to remember that the printer file MUST be Compiled as RPLUNPRT(*NO) . Bill

  4. #4
    B.Myrick Guest

    Default RPG - Network Laser Printer Control

    Todd, How about going to the IBM Redbooks. There is an Printer IV and V manual that pretty well describes what you want (I think). http://boulder.ibm.con/html/as400/online/v4r4eng.htm Hope this helps, Bret

+ Reply to Thread

Similar Threads

  1. how to select bulk tray from laser printer
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 03-09-2007, 06:43 AM
  2. Continuous Form laser printer
    By pluedke@oilgear.com in forum Document Management
    Replies: 1
    Last Post: 02-07-2003, 07:01 AM
  3. Printing using HP Laser Printer with Internal Jet Direct
    By Guest.Visitor in forum Document Management
    Replies: 9
    Last Post: 08-27-2002, 09:54 AM
  4. Passing printer control characters to C/A printer???
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 09-16-1999, 03:55 PM
  5. Continous-Feed Laser Printer
    By Guest.Visitor in forum Application Software
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts