Highlighted
AmyM1 Super Contributor.
Super Contributor.
1147 views

Printing to a printer connected to a USB Port

Jump to solution

We have a customer that does not have an LPT1 port on their PC.  They have connected their receipt printer to the USB port on the PC, and our program will not print to the receipt printer because it is looking for the printer to be attached to LPT1.

Is there a way in RM COBOL to tell the computer to look at the USB port (like PRINTER1 tells the computer to look at LPT1)

 

(I could use PRINTER? but the customer has instisted that they do not want to have to select the printer EVERY TIME they use the cash register).

 

Tags (2)
0 Likes
1 Solution

Accepted Solutions
hbetancur Absent Member.
Absent Member.

RE: Printing to a printer connected to a USB Port

Jump to solution
Just change LPT1 for Default and set you ticket printer to default printer beforehand .

Define-Device Device=Ticketprinter Escape-Sequences=Yes Path=",Default,,Lucida Console, 10"
0 Likes
7 Replies
hbetancur Absent Member.
Absent Member.

RE: Printing to a printer connected to a USB Port

Jump to solution
Hi,

Use Define-Device Configuration Record

Define-Device Device=Invoiceprintername Escape-Sequences=Yes Path=",Lpt1,,Lucida Console, 10"

Humberto Betancur
0 Likes
AmyM1 Super Contributor.
Super Contributor.

RE: Printing to a printer connected to a USB Port

Jump to solution
But I can't print to LPT1 - LPT1 does not exist on the customer's PC. I need to define it to print to the USB port....
0 Likes
hbetancur Absent Member.
Absent Member.

RE: Printing to a printer connected to a USB Port

Jump to solution
Just change LPT1 for Default and set you ticket printer to default printer beforehand .

Define-Device Device=Ticketprinter Escape-Sequences=Yes Path=",Default,,Lucida Console, 10"
0 Likes
AmyM1 Super Contributor.
Super Contributor.

RE: Printing to a printer connected to a USB Port

Jump to solution
Ok - That makes sense. Thanks for your help!
0 Likes
jcantero Absent Member.
Absent Member.

RE: Printing to a printer connected to a USB Port

Jump to solution
If you use PRINTER? the customer has selected the printer EVERY TIME he uses the PRINTER.

If you use PRINTER, the program always prints on the printer by default.
0 Likes
AmyM1 Super Contributor.
Super Contributor.

RE: Printing to a printer connected to a USB Port

Jump to solution
Right, but the customer doesn't want to have to select the printer every single time they run the cash register.
0 Likes
jcantero Absent Member.
Absent Member.

RE: Printing to a printer connected to a USB Port

Jump to solution
If you use PRINTER, the progran does not ask
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.