Printing On a Copier/Printer

1780 pts.
Tags:
AS/400
AS/400 printing
OK. I have tried everything. We have envelopes that are 12 1/2 by 9 1/2. I generated a spool file with all the data I want on it. B/c of the size we have to put them in the manaul tray. When I do this it will not use the Page rotation. I tired going to drawer 1 and no rotation. Then I tried *E1. Now that worked BUT the data was either in the middle of the page or at the bottom of the page depending on if I used *AUTOCUT or *CUT. I also tried using raster mode with a work station config file. That rotated it but again the data not alligned right. Its almost like its right justified. Does anyone have any kind of ideas. I'm ready to try anything at this point.(except buying a software package).  Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

I’ll try since noone else did
You’ve got it rotated but it’s not at the right location
Try
Front margin:
Offset down .
Offset across
Phil

Tried that… Nothing…
I did however fool it and put rotation of 270 and put the envelopes in the other way. That woks a little better but now not all the data is there. Weird. it almost like it only supports it so big in raster mode. That is the only way I can get it to print out semi fine….

***************

Don’t think I can help you..curious, how did you set the
Page size:
Page length .
Page width . .
Phil

—————————————————————————————————————
I recently had to setup a WSCST for a client who needed to print on legal size paper pulling from the manual tray so I had to modify the :PAGSIZE and DATA string. I have modified the text I used and came up with the following for your use. I make no guarantee that this will work for you since I do not have the manufacture and model information of the system you are using. You may still have to do a rotation on the print file to get the correct orientation. I assume the print file you are using corresponds to the size you indicated.

Try adding the following and see if it makes a difference to the WSCST associated with the printer.

<pre>
:PAGSIZE /* 9.5″ X 12.5″ Custom form Pull from Manual Tray */
PAGWTH=13680
PAGLEN=18000
DATA =’1B266C313031481B266C3248′X.
</pre>

Gary
—————————————————————————————————————–
Gary,
Its not a print file. Just a general spool file created in RPGLE.
That gives me a “Hexadecimal value on line 0160.00 not correct. ” So I broke that up seperating the “1B” and tried each one. That still did not work. Its close I think. I still do not have the rest of the data on the right. The paper is 12.5 x 9.5 and I am using the HP5SI driver. Its a canon ir3035 printer. If I can just get the rest of the output to come out I think I can get it to work. Curently here is my workstation config and overide statment.
The *cut forces it to the manual tray. (*E1 also does this but that is for envelopes). I had to use page roation of 270 b/c if I don;t it will not print top left hand corner. I’m using rastermode set to YES.

Alos how do you figure the HEX decimal values to change them?

OVRPRTF FILE(QSYSPRT) TOFILE(QSYSPRT) DEV(PRT07) +
PAGESIZE(57 216) CPI(10) PAGRTT(270) OVRFLW(55) +
FORMFEED(*CUT) OUTQ(PRT07) HOLD(*YES) SAVE(*YES) COPIES(1)

Work Station COnfig File
:WSCST DEVCLASS=TRANSFORM.

:TRNSFRMTBL.
:PRTDTASTRM
DATASTREAM=HPPCL5.
:NOPRTBDR
OPTION=TOP
ORIENT=PORTRAIT
DATA = 240.
:NOPRTBDR
OPTION=LEFT
ORIENT=PORTRAIT
DATA = 360.
:NOPRTBDR
OPTION=RIGHT
ORIENT=PORTRAIT
DATA = 360.
:NOPRTBDR
OPTION=BOTTOM
ORIENT=PORTRAIT
DATA = 240.
:NOPRTBDR
OPTION=TOP
ORIENT=LANDSCAPE
DATA = 240.
:NOPRTBDR
OPTION=LEFT
ORIENT=LANDSCAPE
DATA = 288.
:NOPRTBDR
OPTION=RIGHT
ORIENT=LANDSCAPE
DATA = 288.
:NOPRTBDR
OPTION=BOTTOM
ORIENT=LANDSCAPE
DATA = 240.
:INITPRT
DATA =’1B45′X.
:RESETPRT
DATA =’1B45′X.
:BELL
DATA =’07′X.
:SPACE
DATA =’20′X.
:CARRTN
DATA =’0D’X.
:FORMFEED
DATA =’0C’X.
:LINEFEED
DATA =’0A’X.
:VERRMOV
DIRECTION=UP
VAROFFSET= 4
VARLEN= 5
VARTYPE=CHRDEC
CNVNUM= 1
CNVDEN= 720
DATA =’1B26612D000000000056′X.
:VERRMOV
DIRECTION=DOWN
VAROFFSET= 4
VARLEN= 5
VARTYPE=CHRDEC
CNVNUM= 1
CNVDEN= 720
DATA =’1B26612B000000000056′X.
:HORRMOV
DIRECTION=FWD
VAROFFSET= 4
VARLEN= 5
VARTYPE=CHRDEC
CNVNUM= 1
CNVDEN= 720
DATA =’1B26612B000000000048′X.
:HORRMOV
DIRECTION=BCK
VAROFFSET= 4
VARLEN= 5
VARTYPE=CHRDEC
CNVNUM= 1
CNVDEN= 720
DATA =’1B26612D000000000048′X.
:STRBOLD
DATA =’1B28733342′X.
:ENDBOLD
DATA =’1B28733042′X.
:STRSUBS
DATA =’1B26612B2E3352′X.
:ENDSUBS
DATA =’1B26612D2E3352′X.
:STRSUPS
DATA =’1B26612D2E3352′X.
:ENDSUPS
DATA =’1B26612B2E3352′X.
:STRUS
DATA =’1B26643044′X.
:ENDUS
DATA =’1B266440′X.
:VARLSPC
VAROFFSET= 3
VARLEN= 3
VARTYPE=CHRDEC
CNVNUM= 1
CNVDEN= 48
DATA =’1B266C00000043′X.
:CPICOR
CPI=10
ASCIIFNT= 255
FNTWTH= 84
FNTATR= 1
DATA =”X.
:CPICOR
CPI=12
ASCIIFNT= 255
FNTWTH= 84
FNTATR= 1
DATA =”X.
:PRTORIENT
ORIENT=PORTRAIT
DATA =’1B266C304F’X.
:PRTORIENT
ORIENT=LANDSCAPE
DATA =’1B266C334F’X.
:PRTORIENT
ORIENT=RTT180
DATA =’1B266C324F’X.
:PRTORIENT
ORIENT=RTT270
DATA =’1B266C314F’X.
:SMPXPRT
DATA =’1B266C3053′X.
:DUPXPRT
DATA =’1B266C3153′X.
:TUMDUPXPRT
DATA =’1B266C3253′X.
:DWRSLT
DRAWER=PAPER
DATA =’1B266C3248′X.
:DWRSLT
DRAWER=ENVELOPE
DATA =’1B266C3668314F’X.
:DWRSLT
DRAWER=DRAWER1
DATA =’1B266C3148′X.
:DWRSLT
DRAWER=DRAWER2
DATA =’1B266C3448′X.
:JOGOUTTRAY
DATA =’1B266C3154′X.
:PAGLENL
VAROFFSET= 3

VARLEN= 3
VARTYPE=CHRDEC
DATA =’1B266C00000050′X.
:PAGSIZXFM.
:PAGSIZE
PAGWTH=13680
PAGLEN=18000
DATA =’1B266C3248′X.
:PAGSIZE
PAGWTH= 8390
PAGLEN=11338
DATA =’1B266C373241′X.
:PAGSIZE
PAGWTH= 8352
PAGLEN=11952
DATA =’1B266C303141′X.
:PAGSIZE
PAGWTH=11952
PAGLEN=16848
DATA =’1B266C323641′X.
:PAGSIZE
PAGWTH=16838
PAGLEN=23811
DATA =’1B266C323741′X.
:PAGSIZE
PAGWTH=10368
PAGLEN=14544
DATA =’1B266C343541′X.
:PAGSIZE
PAGWTH=14570
PAGLEN=20636
DATA =’1B266C343641′X.
:PAGSIZE
PAGWTH=10440
PAGLEN=15120
DATA =’1B266C303141′X.
:PAGSIZE
PAGWTH=12240
PAGLEN=15840
DATA =’1B266C303241′X.
:PAGSIZE
PAGWTH=12240
PAGLEN=20160
DATA =’1B266C303341′X.
:PAGSIZE
PAGWTH=15840
PAGLEN=24480
DATA =’1B266C303641′X.
:EPAGSIZXFM.
:ENVSIZXFM.
:ENVSIZE
………….. skip a few
…+… 1 …+… 2 …+…
:EOUTBINTBL.
:ADDDRWTBL.
:ADDDRWTBLE
NUMBER= 3
DATA =’1B266C3548′X.
:EADDDRWTBL.
:RASTERMODE
SCS=YES
AFP=YES.
:EUROSYMBOL
RESIDENT=NO.
:EWSCST.

Any other ideas
Thanks for all your help

Don’t know but
’1B266C31303141B266C3248′X. <– shouldn’t that be an even number of digits??
I make it out to be 23 characters…
Phil

———————————————————————————————————-
Thanks Phil

I left out the 8 before the second 1B. When I pasted them together I must have overlaid it and did not notice. I corrected the string above with the revision. (’1B266C313031481B266C3248′X.)

Gary

-(_(_(_(_(_(_(_(_(_(_(
Ron
There are offset values on the printer file – don’t know how those get transmitted
Front margin:
Offset down . . . . . . . . . 0-57.790
Offset across . . . . . . . . 0-57.790
Phil

———————————————————————————————————-

This parameter can only be used for printer files with
DEVTYPE(*AFPDS) specified. Mine is a regular printer file. Nothing special. I just want it to print right…lol

Ron

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • hafwhit
    You can find information on drawer selection on this web page Drawer Redirection for HP PCL5 Compatible Printers. It will give you the values to use depending on your selection. You may be able to get the PCL datastream information for you printer from Cannon. On looking at your OVRPRTF I see that you have PAGESIZE(57 216) CPI(10) . At 6 lpi and 10 cpi I would expect you to have PAGESIZE(57 125). (12.5 X 10 = 125). Try changing this and if it does not work look at making the change to the WSCST I gave earlier.
    1,145 pointsBadges:
    report
  • RonKoontz
    On the overide I was just trying to get it to work. You never know what may work in some of these cases with printers. The Data tag ealier does not work. Is there a digit missing?
    1,780 pointsBadges:
    report
  • hafwhit
    Yes I made a mistake with the data tag and have corrected the missing character. See the answer section.
    1,145 pointsBadges:
    report
  • RonKoontz
    OK.. I got it to where it prints the correct way and all the data to the right. BUT now it truncates the data on the left. Its starting in position 50 instead of 1. So I thought I would out smart it and make my page size bigger. It then prints it upside down. I even have played with the page rotation. There has got to be away to position the page or something. Like tell it where to start on the page. Any ideas almighty RPGLE people?
    1,780 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following