Is there a way to use unc printernames in wine like \\server\printer ?
It is for a old application that has no windows-printer-selection-dialog and only accepts lptX and unc notation.
Printing to the cups printer for applications that have a windows-printer-selection-dialog works fine, but I cannot find a way to attac that application to the cups printers.
Thanks
use unc printernames
Re: use unc printernames
No, Wine has rudimentary support for UNC paths for opening files only. It can not use windows shared printer this way.oger000 wrote:Is there a way to use unc printernames in wine like \\server\printer ?
Try adding this to the registry (2 examples, you can use different command):oger000 wrote:It is for a old application that has no windows-printer-selection-dialog and only accepts lptX and unc notation.
Code: Select all
[HKEY_CURRENT_USER\Software\Wine\Printing\Spooler]
"LPT1:"="|lpr"
"LPT2:"="|kprinter --stdin"
Re: use unc printernames
No way. I have allready tried, but it will not work.vitamin wrote:Code: Select all
[HKEY_CURRENT_USER\Software\Wine\Printing\Spooler] "LPT1:"="|lpr" "LPT2:"="|kprinter --stdin"
If using LPTx the application checks itself for the physical existance of the printer, which is not the case. And even if I plug a printer, I am not shure if wine replies the answer that the appplication is needing. (Seams to be a reminding check from beeing a dos-applicaiton before)
I solved it a little strange, but it works (till now):
1) The application can print to file
2) I created a linux-fifo file "mkfifo lptfake"
3) A endless looping script that "watches" the fifo file:
script1:
Code: Select all
while [ 1 ] ; do
lpr -l -P myprinter < lptfake
done
Code: Select all
nohup script1 >> script1.log 2>&1 &
May be this is of use for other applications that have problems with printing and can "print to file" without printer selection dialog.