Configuration for successful laser printing

45 pts.
Tags:
AS/400 printing
I am a RPG programmer/analyst trying to assist a remote client that just purchased a HP4350 printer and is having issues with the character size. She wants the character size to match what she is used to on her ancient impact printer.

Unfortunately, the characters on reports printed on her new laser printer are around 1/2 of the size that they should be and the output is scrunched up in the upper left hand corner of the page. Her printer configuration (CHGPRTF)matches the settings that I see at another customer's site that uses a laser printer.

The printer technician who installed the printer claims that there are not settings on the printer that would address this issue. I would appreciate any insight that you might have that would help me to assist my customer.



Software/Hardware used:
HP4350 printer / AS/400 iSeries

Answer Wiki

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

We had a similar problem. Adding a workstation customizing object to the config minimized the problem. I can send you a copy of what we use if you want to post your e-mail address.

How is your printer configured – with just an output queue description or are you using a full device description?

Discuss This Question: 10  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
  • TomLiotta
    Her printer configuration (CHGPRTF)... It's not clear if that is a typo or the result of a misunderstanding. CHGPRTF can change the attributes of a printer file but not of a printer. A printer file describes attributes of a document or report. It doesn't describe a printer. Use WRKDEVD *PRT to see a list of printers known to the system. From the resulting list, option 2(=Change) can show that the CHGDEVPRT command is used to change the attributes of a printer device. Tom
    125,585 pointsBadges:
    report
  • Bruzgoi
    Thanks for the input... Sorry, I forgot to mention that I had also examined the printer device definition... The parameters that I think are relevant are: Font: Identifier . . . . . . . . . . . : 011 Point size . . . . . . . . . . . : *NONE Manufacturer type and model . . . : *HP4 These values also reasonably match what I see at another customer's site that uses a laser printer (the HP Printer model is different). The workstations are set up to use the system printer as their print device, which is the old dot matrix printer (they are still using both printers). Print device . . . . . . . . . . . : *SYSVAL The old printer is a 5224 and the definition for that printer does not even include a specification for font size. jan
    45 pointsBadges:
    report
  • Splat
    Go here. According to the Information on Printers from HP that printer should have a manufacturer type and model of *HP5.
    7,405 pointsBadges:
    report
  • Bruzgoi
    Thanks for the input!!! I have been working with your advice and have experienced partial success. I did some research based on WoodEngineer's input (Thank you!!!) regarding adding a workstation customizing object . I found some documentation from IBM on the web and followed that. It was a matter of creating the source for the customization object and then recompiling it. I also had to change the device description to point to it. In my case, that meant... RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP4) SRCMBR(HP4) SRCFILE(QGPL/QTXT SRC) TEXT('Laser Jet 4 ') CRTWSCST WSCST(QGPL/HP4) SRCFILE(QGPL/QTXTSRC) Device description change -- Workstation customizing object . . : HP4 The net result of this was larger characters, but not the desired size... still a little too small. Since the customer wants to use this printer to print forms, she needs to get a size that matches what our other customers are getting in order to use our standard programming. Based on some other testing and research that I did, I suspect that the ASCIIFNT values in the source below is key and that the value should be smaller, but I am not certain what that value should be. 0107.00 :CPICOR 0108.00 CPI=10 0109.00 ASCIIFNT= 201 <<<<<<<<<< 0110.00 FNTWTH= 84 0111.00 FNTATR= 1 0112.00 DATA =''X. 0113.00 :CPICOR 0114.00 CPI=12 0115.00 ASCIIFNT= 201 <<<<<<<<<< 0116.00 FNTWTH= 84 0117.00 FNTATR= 1 0118.00 DATA =''X. I also tried changing the device description to point to the HP5 driver aps Splat suggested, but that had no affect. Manufacturer type and model . . . : *HP5
    45 pointsBadges:
    report
  • Splat
    Sorry that didn't help. You might try the alternate manufacturer type and model suggested - I've had an occasional bit of luck doing that.
    7,405 pointsBadges:
    report
  • WoodEngineer
    Glad the print size is better. Our workstation customizing object has these values:
    0106.00       DATA ='1B266C00000043'X.        
    0107.00     :CPICOR                           
    0108.00       CPI=15                          
    0109.00       ASCIIFNT=  281                  
    0110.00       FNTWTH=   72                    
    0111.00       FNTATR=    1                    
    0112.00       DATA =''X.                      
    0113.00     :CPICOR                           
    0114.00       CPI=12                          
    0115.00       ASCIIFNT=  223                  
    0116.00       FNTWTH=   96                    
    0117.00       FNTATR=    1                    
    0118.00       DATA =''X.                      
    0119.00     :CPICOR                           
    0120.00       CPI=10                          
    0121.00       ASCIIFNT=  205                  
    0122.00       FNTWTH=  110                    
    0123.00       FNTATR=    1                    
    0124.00       DATA =''X.                      
    0125.00     :PRTORIENT                        
    
    6,715 pointsBadges:
    report
  • Bruzgoi
    After much consultation and work we finally have a viable solution! We were ultimately able to get 10 CPI output only to find that a straight 10 CPI solution (achieved with OVERPRTF) with the device description set to not compensate by condensing resulted in the final 2 characters of 108 inch output being truncated. The problem is that this printer, and many other HP printers, has hard coded margins that cannot be overcome. This solution, devised by an IBM technical consultant sets the CPI to around 10.2 1.) Create workstation configuration object ------- RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP5) SRCMBR(HP4) SRCFILE(QGPL/QTXTSRC) TEXT('Laser Jet 4 ') This will create an source member that can be modified. In this case, it is called HP4 and is found in QGPL/QTXTSRC. 2.) Update that object by adding the following code right after :FNTGRP. :FNTGRPE MINFID = 1 MAXFID = 65 FNTSTR ='1B2873307031302E3268307330623354'X FNTEND = ''X FNTWTH = ''X. It will look like this... :FNTGRP. :FNTGRPE MINFID = 1 MAXFID = 65 FNTSTR ='1B2873307031302E3268307330623354'X FNTEND = ''X FNTWTH = ''X. :FNTGRPE 3) Compile using CRTWSCST. I compiled into QGPL. 4) Update the device description to point to this new workstation configuration object ------ ENDWTR Px ------ Vary off printer ------ WKRDEVD Px, setting the following values ---------------Font: Identifier . . . . . . . . . . 014 ---------------Manufacturer type and model . . *HP4 (or appropriate) ---------------Workstation customizing object HP4M ------ STRPRTWTR Px ------ Vary on printer 5) CHGPRTF QSYSPRT ---- Lines per inch . . . . . . . . . 6 ---- Characters per inch . . . . . . 10 ---- Font: Identifier . . . . . . . . . . *CPI ---- Degree of page rotation . . . . 90 This solution will not affect any impact printers that they are still using, since the only portion that could affect them is the CHGPRTF and the only item that you will be changing there will be the degree of rotation and impact printers ignore that parameter. Many thanks for your assistance!!!!
    45 pointsBadges:
    report
  • Bruzgoi
    After much consultation and testing, I finally have a viable solution. We were able to actually get 10 CPI output only to discover that a straight 10 CPI solution (achieved with OVERPRTF) with the device description set to not compensate by condensing resulted in the final 2 characters of 108 inch output being truncated. The problem is that this printer, and many other HP printers, has hard coded margins that cannot be overcome. This solution, devised by Mark Pines at IBM sets the CPI to around 10.2 1.) Create workstation configuration object ------- RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP5) SRCMBR(HP4) SRCFILE(QGPL/QTXTSRC) TEXT('Laser Jet 4 ') This will create an source member that can be modified. In this case, it is called HP4 and is found in QGPL/QTXTSRC. 2.) Update that object by adding the following code right after :FNTGRP. :FNTGRPE MINFID = 1 MAXFID = 65 FNTSTR ='1B2873307031302E3268307330623354'X FNTEND = ''X FNTWTH = ''X. It will look like this... :FNTGRP. :FNTGRPE MINFID = 1 MAXFID = 65 FNTSTR ='1B2873307031302E3268307330623354'X FNTEND = ''X FNTWTH = ''X. :FNTGRPE 3) Compile using CRTWSCST. I compiled into QGPL. 4) Update the device description to point to this new workstation configuration object ------ ENDWTR Px ------ Vary off printer ------ WKRDEVD Px, setting the following values ---------------Font: Identifier . . . . . . . . . . 014 ---------------Manufacturer type and model . . *HP4 (or appropriate) ---------------Workstation customizing object HP4M ------ STRPRTWTR Px ------ Vary on printer 5) CHGPRTF QSYSPRT ---- Lines per inch . . . . . . . . . 6 ---- Characters per inch . . . . . . 10 ---- Font: Identifier . . . . . . . . . . *CPI ---- Degree of page rotation . . . . 90 This solution will not affect any impact printers that they are still using, since the only portion that could affect them is the CHGPRTF and the only item that you will be changing there will be the degree of rotation and impact printers ignore that parameter. Many thanks for your assistance!
    45 pointsBadges:
    report
  • TomLiotta
    CHGPRTF QSYSPRT It probably won't matter in this case because you probably can't do anything about it, but none of what you have done should be applied to the QSYSPRT printer file. That is a system-wide printer file from IBM. It shouldn't be used for application printer output that involves anything but straight character-based printing. I realize that far too many sites use QSYSPRT in applications. Still, it shouldn't be used. Printer files should be created if they're used in applications. That's a major part of why printer files can be created in the first place -- you can create them with the attributes needed by the application without affecting unrelated areas.. Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    Bruzgoi - thank for posting the details of your solution. I saved it for future reference.
    6,715 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