IBMiAccess




Results 1 to 2 of 2

Thread: print a report as Portrait and Landscape

  1. #1
    Experienced Forum Member
    Join Date
    Apr 2005
    Location
    India
    Posts
    120
    Rep Power
    828

    Question print a report as Portrait and Landscape

    Hi All,


    How to print a report as Portrait and Landscape.?

    Is there any parameter that i we have to give it in the Compiletime of the
    Printer file?


    PLease suggest

    Thanks
    SKMA

  2. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Posts
    1,000,000
     

  3. #2
    Analyst giri's Avatar
    Join Date
    May 2005
    Location
    Salt lake City, US
    Age
    33
    Posts
    247
    Rep Power
    1669

    Re: print a report as Portrait and Landscape

    This is most likely due to your print file settings. The default on the CRTPRTF command is to create a print file with a width of 132 characters. The HP Laserjets will print in landscape mode a file defined as 132 characters in width, regardless of how much is used. Use either the CHGPRTF or CRTPRTF commands to specify a width of 80 characters on your print file and you should be printing in portrait mode. If you are still not printing in a portrait mode, check the options on your HP printer menu.


    Try 122 chars if you're doing compressed print (CPI-15). Most laser printer configurations use a PAGRTT (page rotate) parameter of *AUTO or *COR (computer output reduction) to force-fit their output on an 8 1/2" x 11" page. When you have a short-width print output and want it to print full-size, the default still assumes that it should be size-reduced and rotated anyway. Rather than change the print file, have the luck with most laser printer setups by doing an OVRPRTF with PAGRTT(0), setting the rotation to zero, which also seems to abort the *COR shrinking, and gives the portrait output.
    Thanks,
    Giri

  4. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Age
    21
    Posts
    1,000,000
     

Facebook Comments


Similar Threads

  1. RPG report
    By twiggins in forum RPG/RPGLE
    Replies: 2
    Last Post: July 14th, 2006, 02:52 PM

Bookmarks

Posting Permissions

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