Can only print to the default printer

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Fitzcarraldo
Level 2
Level 2
Posts: 10
Joined: Sun Nov 07, 2010 5:35 pm

Can only print to the default printer

Post by Fitzcarraldo »

I am not sure if I am experiencing a WINE bug (I have looked through the bug reports but can't see this particular problem mentioned) or if this is a current limitation of WINE...

I am using 64-bit Sabayon Linux (multilib) 2.6.36-sabayon kernel with CUPS 1.4.4-r2 and 32-bit WINE 1.3.4.

I have several printers configured in CUPS. With native Linux applications I can select from each application's Print window whichever of these printers I want to use, and can print to any of them. However, when running Windows applications under WINE, although each Windows application's Print window allows me to select any of the printers that I have configured in CUPS, the only printer that it actually prints on is the printer that is the default CUPS printer. Below is my win.ini file:

Code: Select all

[intl]
sLanguage=ENG
sCountry=United Kingdom
sList=,
sCurrency=�
iCurrency=0
iNegCurr=1
iCurrDigits=2
iLZero=1
sMonDecimalSep=.
sMonGrouping=3;0
sMonThousandSep=,
sDecimal=.
sThousand=,
iDigits=2
Numshape=1
sNativeDigits=0123456789
iNegNumber=1
sNegativeSign=-
sPositiveSign=
sGrouping=3;0
s1159=AM
s2359=PM
sTime=:
iTime=1
iTLZero=1
sShortDate=dd/MM/yyyy
iDate=1
sLongDate=dd MMMM yyyy
iLDate=1
sDate=/
iTimePrefix=0
iCalendarType=1
iFirstDayOfWeek=0
iFirstWeekOfYear=0
sTimeFormat=HH:mm:ss
sYearMonth=MMMM yyyy
iMeasure=0
iCountry=44
iPaperSize=9
[devices]
Canon_MP510_Printer=WINEPS.DRV,LPR:Canon_MP510_Printer
EPSON_Stylus_Photo_950=WINEPS.DRV,LPR:EPSON_Stylus_Photo_950
HP_color_LaserJet_5500dn=WINEPS.DRV,LPR:HP_color_LaserJet_5500dn
HP_Color_LaserJet_CM1312nfi_MFP=WINEPS.DRV,LPR:HP_Color_LaserJet_CM1312nfi_MFP
Virtual_PDF_Printer=WINEPS.DRV,LPR:Virtual_PDF_Printer
[PrinterPorts]
Canon_MP510_Printer=WINEPS.DRV,LPR:Canon_MP510_Printer,15,45
EPSON_Stylus_Photo_950=WINEPS.DRV,LPR:EPSON_Stylus_Photo_950,15,45
HP_color_LaserJet_5500dn=WINEPS.DRV,LPR:HP_color_LaserJet_5500dn,15,45
HP_Color_LaserJet_CM1312nfi_MFP=WINEPS.DRV,LPR:HP_Color_LaserJet_CM1312nfi_MFP,15,45
Virtual_PDF_Printer=WINEPS.DRV,LPR:Virtual_PDF_Printer,15,45
[windows]
device=HP_color_LaserJet_5500dn,WINEPS.DRV,LPR:HP_color_LaserJet_5500dn
The printer in the [windows] section of win.ini is the default CUPS printer (HP_color_LaserJet_5500dn), and I cannot print a document on any of the other printers (Canon_MP510_Printer, EPSON_Stylus_Photo_950, HP_Color_LaserJet_CM1312nfi_MFP, Virtual_PDF_Printer) even if I select them in the Windows application's Print window. The document is always printed on the default CUPS printer.

If I exit the Windows application, then launch the CUPS browser interface and change the default CUPS printer, then launch the Windows application under WINE again, the default printer in the win.ini file is changed to the new default CUPS printer. So at least there is a work-around. But it's still a major hassle to have to do all that just to print to a different printer on the network, when one is able to select and print to any printer in the list of printers in the Print window of a Linux application, or in the Print window of a Windows application running in Windows.

If your PC can access more than one printer, can you select and print on any of your CUPS printers in the Print menu of Windows applications under WINE? Or is the functionality I describe above a current known limitation of WINE? Or is what I'm experiencing a bug?

Hoping someone can enlighten me. Thanks in advance.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Can only print to the default printer

Post by vitamin »

Fitzcarraldo wrote:I am using 64-bit Sabayon Linux (multilib) 2.6.36-sabayon kernel with CUPS 1.4.4-r2 and 32-bit WINE 1.3.4.
Try upgrading to latest Wine version. There were few patches for Wine to work better with CUPS. If that still doesn't work, then please file in bugilla.
Fitzcarraldo
Level 2
Level 2
Posts: 10
Joined: Sun Nov 07, 2010 5:35 pm

Re: Can only print to the default printer

Post by Fitzcarraldo »

Thanks for your quick reply.

Version 1.3.6 of WINE became available on 10 Nov. 2010 in the package manager's repository of the Linux distribution I use, so I installed it. My tests with WINE 1.3.6 so far indicate that the problem is fixed. Excellent! However, unlike WINE Version 1.3.4 (and 1.3.5), if I change the default printer in CUPS, WINE no longer changes the default printer in win.ini. But I can live with that.
Fitzcarraldo
Level 2
Level 2
Posts: 10
Joined: Sun Nov 07, 2010 5:35 pm

Post by Fitzcarraldo »

Regarding WINE 1.3.6 no longer changing the default printer in win.ini if I change the default CUPS printer, I have now discovered that this is because CUPS 1.4.4-r2 is not changing the contents of the ~/.cups/lpotions file and WINE determines the default printer from that file. If I edit the file manually and change the printer specified in there, then WINE detects the change. But WINE 1.3.4 and 1.3.5 were detecting changes to the default printer that I made via the CUPS 1.4.4-r2 browser interface before I installed WINE 1.3.6, so I wonder what is going on.
Fitzcarraldo
Level 2
Level 2
Posts: 10
Joined: Sun Nov 07, 2010 5:35 pm

CUPS default printer is now detected by WINE again

Post by Fitzcarraldo »

I deleted ~/.cups/lpoptions and now WINE 1.3.6 does detect changes to the CUPS default printer. (I wonder what created the ~/.cups/lpoptions file?)

With WINE 1.3.6, Office 2007 applications can now print to any CUPS printer I select via the Office 2007 application's Print window, and, once I deleted ~/.cups/lpoptions, WINE 1.3.6 now also detects changes to the CUPS default printer again.

As far as I know, the only problem I still have is with Visio 5 Professional (released in 1998 or 1999 if I recall correctly). It will still only print to the default CUPS printer (the same problem reported in my first post). Still, that is better than WINE not changing the default printer in win.ini, which was the behaviour that started after I installed WINE 1.3.6 and before I deleted the ~/.cups/lpoptions file. :roll:
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: CUPS default printer is now detected by WINE again

Post by vitamin »

Fitzcarraldo wrote:As far as I know, the only problem I still have is with Visio 5 Professional (released in 1998 or 1999 if I recall correctly). It will still only print to the default CUPS printer (the same problem reported in my first post).
Please open a bug report in bugzilla.
Locked