Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Cbourque_gts-genesis Absent Member.
Absent Member.
1385 views

-P SPOOLER-DIRECT

Jump to solution

I have a check printing program which bypasses the Windows print driver.  I have been told by Micro Focus support that it is no longer supported on Windows 10.  Does anyone have a workaround.  I have told to use a third party software but I have not had any luck with them.

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Contributor
Micro Focus Contributor

RE: -P SPOOLER-DIRECT

Jump to solution

As far as I know, ACUCOBOL-GT has not stopped supporting -P SPOOLER-DIRECT. However, it is entirely possible that Windows 10 has stopped supporting the ability of any application (including the ACUCOBOL-GT runtime) from accessing a print device directly. We have no ability to influence Microsoft in that regard.

That being said, it should be entirely possible to format check printing using WIN$PRINTER. Your check printing program will need extensive modification, but once done it should work for all future versions of Windows, since you will be using a well-supported API (via the ACUCOBOL-GT runtime).

View solution in original post

0 Likes
3 Replies
Micro Focus Contributor
Micro Focus Contributor

RE: -P SPOOLER-DIRECT

Jump to solution

As far as I know, ACUCOBOL-GT has not stopped supporting -P SPOOLER-DIRECT. However, it is entirely possible that Windows 10 has stopped supporting the ability of any application (including the ACUCOBOL-GT runtime) from accessing a print device directly. We have no ability to influence Microsoft in that regard.

That being said, it should be entirely possible to format check printing using WIN$PRINTER. Your check printing program will need extensive modification, but once done it should work for all future versions of Windows, since you will be using a well-supported API (via the ACUCOBOL-GT runtime).

View solution in original post

0 Likes
ShanePrice Absent Member.
Absent Member.

RE: -P SPOOLER-DIRECT

Jump to solution

Our main program is a retail application (inventory control, point-of-sale, accounting, etc.).  Many of our customers use Star Micronics TSP 143 receipt printers with auto-cutter at their point of purchase computers.  We have to send control codes in order to cut the paper at the end of the receipt and kick the attached cash drawer open.  Since we only want receipts printing to this printer, we set the Windows default printer to a laser printer on the network and use "-Q" to print receipts.  Our report printer is set to use "-P SPOOLER".  In order to allow the control codes to pass unmodified to the receipt printer, we have to use the SPOOLER-DIRECT directive in our printer identifier.  Assuming the receipt printer is named "TSP143" in the Printers folder/list, the RECEIPT printer line in CBLCONFI is set to...

RECEIPT  -Q  TSP143;DIRECT=ON

We are using the 9.2.2 AcuCOBOL-GT runtime, and this is working for us on Windows 10 Anniversary Edition, earlier releases of Windows 10, and earlier client versions of Windows (XP, Vista, and 7).

0 Likes
Cbourque_gts-genesis Absent Member.
Absent Member.

RE: -P SPOOLER-DIRECT

Jump to solution

Unfortunately I never know what kind of printer my customers will be using.

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.