Serge, I have printed to usb or network printers for many years.
To do so I always made a batch file to start my exe program. This way you can print to local or printers on the network.
You install the windows printer. then share it, I use a simple share name .. like star1. This is easier to set up.
If you are not printing to a local printer the computer you are printing to should be on same workgroup.
If you are printing local, you need your computer name and printer share name.
Here is eg: of batch file
myprogram.bat
echo off
cls
net use lpt1: \\mycomputername\star1 //set printer to lpt1 You can set any port.
myprogram.exe // prints to port instead of printer. Then all print commands can go to lpt1: not images text only.
net use lpt1: /delete // I always shut of link after program
//end batch file
At start of print procedures say set device to printer then
set printer to lpt1
then all print commands @ line,col say commands go to printer
I usually print some blank lines at end of print to set start of next printout
at end say set device to screen.
I hope this is what you where looking for.
Franco