L
L
levisl2015-08-20 02:24:00
go
levisl, 2015-08-20 02:24:00

How to print to printer from golang on windows?

Good afternoon!
There was a question - which sensibly I can not solve.
It is necessary to print from GO to the printer, and it is necessary to print without a system dialog box, so that the data is printed immediately after sending the command.
From ideas which I saw:
- cgo+qt. there are no sensible implementations, a terrible crutch that will make a monster out of a program
- syscall - did not find a sensible description, until I found a strange call that creates a window with YES / NO / CANCEL buttons for me
.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Filinkov, 2015-08-20
@vitfil

I rant:

The following print commands can be run from the command line.
Command to print a text file or display the contents of the print queue
Command to manage jobs and printer queues or display information about them
Command to connect to and disconnect from a shared printer
Command to start the print spooler
service Command to stop the print spooler service

Full version here
I mean, it's unlikely to be able to do without crutches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question