jimevins / glabels-qt

gLabels Label Designer (Qt/C++)

Home Page:http://glabels.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switching from Linux to windows. Can't print from windows to CUPS network printer from glabels-batch-qt

dinki opened this issue · comments

Hey guys. First off, thanks for the great program. I have been using it for a while since switching to Linux for my daily driver. I use glabels-batch-qt for sending labels via a custom python script to my CUPS network printer. Works like a charm.

Due to a situation beyond my control, I'm having to spend more time on Windows and would like to print using the windows verison of glabels-batch-qt.exe . I am trying using this command line:

glabels-batch-qt.exe -p "DYMO_LabelWriter_400 on http://192.168.0.25:631" disclaimer.glabels

The big problem is with determining the printer name. This is how windows lists the printer. I can also print from glabels-qt.exe just fine to this same printer. Can someone tell me if logs or debug options exist that I might use to capture the printer name or if there is an easier way of figuring this out? Right now, it prints to my default printer (a full size laser printer) rather than the label printer I'm trying to use.

All the best to you!

Hello,

You've probably already moved on from here, but the printer is probably addressed like this:
http://192.168.0.25:631/printers/DYMO_LabelWriter_400

So your full command would be:
glabels-batch-qt.exe -p http://192.168.0.25:631/printers/DYMO_LabelWriter_400 disclaimer.glabels

I don't think you need quotes around the printer address in this format, but you would do if there were spaces (rather than underscores) in the name.

@hameau

Thanks for the update. I did find the solution. I'm using Python to call the printer like this:

os.system("glabels-batch-qt.exe --printer \\\\http://192.168.0.25:631\\DYMO_LabelWriter_400 C:\\Users\\dsf\\Documents\\labels\\disclaimer.glabels")