Highlighted
Absent Member.
Absent Member.
631 views

[archive] win$printer

[Migrated content. Thread originally posted on 27 April 2009]

Hello
I am using the following code to try to change the orientation of a printer to landscape. It is not working and the return code is 5. Does anyone know what code 5 means?
Thanks!:confused:
move "\\mplsfp01\Canon iR5000-6000 PCL5e"
to winprint-name
move wprtsel-orient-landscape to
winprint-curr-orientation
call "win$printer"
using winprint-set-printer winprint-selection
giving r-code
display message box r-code
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] win$printer

In the sample directory of your ACUCOBOL-GT installation, is the program prndemox.cbl which illustrates most of the win$printer features, including the ability to change orientation.

I would also recommend you use the -ex version, it is better.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.