printer doesn't work under wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

printer doesn't work under wine

Post by Kepu »

Just installed wine to my mepis11, and few programs under it, ... irfaview, justbasic,...
everything works fine except printing,
under wine, non of those programs show any printers not a virtual .pdf or my HP1200.
any suggestion? I am total novice, please.
Martin Gregorie

printer doesn't work under wine

Post by Martin Gregorie »

On Thu, 2011-10-13 at 14:13 -0500, Kepu wrote:
Just installed wine to my mepis11, and few programs under it, ... irfaview, justbasic,...
everything works fine except printing,
under wine, non of those programs show any printers not a virtual .pdf or my HP1200.
any suggestion? I am total novice, please.
The following should be in the FAQ. If it already is, it needs more
visibility. If not, it should be added. Either way id need to be easy to
find since this is a common question that has been asked many times.

Wine prints through CUPS. It expects CUPS to be available as an internet
printer, rather than using the 'lpr' interface. However, most distros
only enable the lpr interface by default and block internet printing.
So, to make CUPS available to Wine, you have to enable Internet
printing. Do the following by using your distro's Print Server
configuration tool:
- enable 'Publish shared printers connected to this system'
- enable 'Allow printing from the internet'

This lets CUPS accept Internet printing jobs from the local machine
regardless of which machine the printer is attached to or whether it is
a network printer: Wine sends the print job to the local CUPS service
which spools the document and then sends it to the default printer
regardless of whether that printer is locally attached, is attached to
another computer on your network, or is a network printer.

You'll need to know the root password to do this. It also goes without
saying that you have previously set up CUPS correctly, which means
that:
- you have set up CUPS to use your printer(s)
- you have set your preferred printer as the default printer
- you have tested that CUPS can successfully print the test page on
this printer

Martin
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: printer doesn't work under wine

Post by dimesio »

Martin Gregorie wrote: Wine prints through CUPS. It expects CUPS to be available as an internet
printer, rather than using the 'lpr' interface. However, most distros
only enable the lpr interface by default and block internet printing.
So, to make CUPS available to Wine, you have to enable Internet
printing. Do the following by using your distro's Print Server
configuration tool:
- enable 'Publish shared printers connected to this system'
- enable 'Allow printing from the internet'
I know you've said this before, and I'm sure you had to do that for your system, but it is by no means necessary for all setups. Printing from Wine has always worked just fine out-of-the box for me, and CUPS is NOT set to either publish shared printers or allow printing from the internet. IMO, this is the case for most users, or we would see far more questions here about printing than we do.
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

Post by Kepu »

Cups shows my HP1200 working fine when I look from :
http://localhost:631/printers/
After several bootings printing now working somehow , irfanview is printing fine and my technical drawings are printing in portrait orientation
The biggest problem is now how I change printer orientation to landscape, (in windows it was easy from control panel)
and also when I try to print program listings..program lines appear only thick black lines instead of characters
wierd?
Martin Gregorie

printer doesn't work under wine

Post by Martin Gregorie »

On Thu, 2011-10-13 at 20:28 -0500, dimesio wrote:
I know you've said this before, and I'm sure you had to do that for
your system, but it is by no means necessary for all setups.
Maybe we should make a list of which distros this applies to.

Fedora defaults to IPP protocol off.

IIRC you use SUSE, which obviously has IPP enabled out of the box or
Wine couldn't use it.

What about the rest?
Printing from Wine has always worked just fine out-of-the box for me,
and CUPS is NOT set to either publish shared printers or allow
printing from the internet. IMO, this is the case for most users, or
we would see far more questions here about printing than we do.
Quick test: if you scan your system with nmap does it show port 631 as
open?

Martin
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

Post by Kepu »

I change in 'System Settings/Printer Configuration/Local Printers/' printer orientation to landscape an fit to printable arera, it worked,
but now only half of the page is seen, other half is outside of paper
Bottom of drawing is on middle of paper
The paper size is right .
What now, I feel lost
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

Post by Kepu »

I change in 'System Settings/Printer Configuration/Local Printers/' printer orientation to landscape an fit to printable area, it worked,
but now only half of the page is seen, other half is outside of paper
Bottom of drawing is on middle of paper
The paper size is right .
What now, I feel lost
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Wine's printing support isn't perfect. You should probably file a bug.

The ususal workaround is to store your docs in a pdf, jpg, etc if they aren't already in that format, and open it with a native linux application and print from there, apps like adobe reader, kpdf, gwenview should have the options to print landscape.

This isn't quite comfortable, but should work. No need to feel lost. Wine is still in some beta state if you for instance define production quality as "all userland WinXP apps should run fine" (userland means apart from drivers and system-/hardware related stuff like defrag tools).
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

before you file a bug, please try to choose the landscape option from the printer dialog in irfanview, and turn off landscape in your
System Settings/Printer Configuration/Local Printers/
menu.
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

Post by Kepu »

Irfanview is working fine
My technical drawing program just dump whole screen to printer and
there is no preview feature, and that seems not to work in wine on landscape orientation. (in windows vista it works )
Kepu
Level 1
Level 1
Posts: 6
Joined: Fri Aug 28, 2009 10:12 am

Post by Kepu »

Is there any direct command to use from terminal to change the place (coordinates) of a landscape drawing on paper
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Is there any direct command to use from terminal to change the place (coordinates) of a landscape drawing on paper
I don't know.

Can you choose a printer in your drawing program? Then you might create and print to a PDF printer, which just creates pdfs on your harddisk. If you can't choose anything at all in your program, the whole printing process might be hardcoded in a unclean way, which wine fails to understand correctly. Then you should file a bug.
Locked