http://bugs.winehq.org/show_bug.cgi?id=12231
Summary: Operation not supported on selected printer (No printing 16bit program) Product: Wine Version: 0.9.58. Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineps.drv AssignedTo: wine-bugs@winehq.org ReportedBy: edi67@gazeta.pl
There's a problem with printing from 16bit program. Software itself installs and runs ok, but when I press print button it keeps popping up windows with message: "Operation not supported on selected printer" until it freezes completely.
I've added software to the AppDB and it waits for an approval, so I will repeat steps to reproduce this problem here:
Application Druki IPS direct download link: http://www.pity.pl/druki/index.php?down=p1
Application installs and runs just fine.
After installation it doesn't have any forms - they have to be downloaded from vendor web page: http://www.pity.pl/druki/
1) For example download money transfer form: http://www.ips-infor.com.pl/pliki/formul/bhpr.f_i
2) Left click on form and use Open with to open it in Wine > Programs > Formularze IPS > Druki IPS
3) Try to print it (use Printer icon or Ctrl+W shortcut)
This application in AppDB: http://appdb.winehq.org/objectManager.php?sClass=application&iId=6938
Source code of the application is not available but I can forward questions to the vendor when needed.
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #1 from Edward edi67@gazeta.pl 2008-03-26 06:41:45 --- Created an attachment (id=11664) --> (http://bugs.winehq.org/attachment.cgi?id=11664) Console log
http://bugs.winehq.org/show_bug.cgi?id=12231
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.pity.pl/druki/ind | |ex.php?down=p1 Keywords| |download Summary|Operation not supported on |Druki IPS - operation not |selected printer (No |supported on selected |printing 16bit program) |printer
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #2 from Austin English austinenglish@gmail.com 2008-03-26 15:46:12 --- I'm seeing this as well, though I'm not sure it's a wine bug. Could this have something to do with the difference between 16/32 bit drivers?
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #3 from Edward edi67@gazeta.pl 2008-03-27 09:30:28 --- Can't tell as I'm just an user of this app.
On the top empty side of this print preview window, where application freezes there should be a combobox with printer selection and some buttons with printer settings: Button A: - opens regular printer settings window (with paper size, orientation, print quality etc.) Button B: - opens window where one can set additional printer settings using check boxes. Options (translated roughly from polish) are: - uncheck if your printer is not a postscript printer - check if your printer driver does not remember printing settings per specific form - check if there are black lines on printouts instead of colour ones.
There's also a Printer Test button which lets you print aligment lines (to position forms on the printouts in case your printer has specific margin settings etc.).
There's a button for choosing form colours.
I'll attach small screenshot for those who can't see it in Windows.
Looks like vendor is willing to help but they do not know where to look for the bug, as they do not even have any Linux box with Wine to test and see this problem.
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #4 from Edward edi67@gazeta.pl 2008-03-27 10:22:33 --- Forgot to post a question: Could those additional printer tests/settings contain a piece of code wine doesn't like?
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #5 from Edward edi67@gazeta.pl 2008-03-27 12:07:02 --- Created an attachment (id=11693) --> (http://bugs.winehq.org/attachment.cgi?id=11693) Screenshot of print settings not visible in Wine
http://bugs.winehq.org/show_bug.cgi?id=12231
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de Keywords| |printing
--- Comment #6 from Detlef Riekenberg wine.dev@web.de 2008-05-04 08:53:54 ---
NEVER use Wine as root.
You need to remover your ~/.wine directory first. Please retest as a normal user and add a log with: WINEDEBUG="+process,+tid,+driver,+print,+psdrv" wine app.exe 2>&1 | tee log.txt
The Function GetOutlineTextMetrics16 is only a stub. That might be a reason for the missing Preview.
-- By by ... Detlef
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #7 from Edward edi67@gazeta.pl 2008-05-10 14:33:05 --- Created an attachment (id=12895) --> (http://bugs.winehq.org/attachment.cgi?id=12895) Console log created by regular user (Wine 1.0-rc1 used)
http://bugs.winehq.org/show_bug.cgi?id=12231
Mike Mango mike@mangovski.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mike@mangovski.com
--- Comment #8 from Mike Mango mike@mangovski.com 2008-10-29 02:04:32 --- Did anyone find a solution to this problem?
I'm having the same problem with a program called CashFlow GST in Ubuntu. It works through Wine fine, except that every time I try to print I get the following error:
"Operation not supported on selected printer"
The printer (Samsung SCX-4216F) works perfectly with other Ubuntu applications and with Notepad through Wine.
Any ideas? I'm completely new to Ubuntu/Linux so any help would be appreciated.
Thanks, Mike
http://bugs.winehq.org/show_bug.cgi?id=12231
JardaK ja.k@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ja.k@seznam.cz
--- Comment #9 from JardaK ja.k@seznam.cz 2008-11-29 17:02:20 --- (In reply to comment #2)
I'm seeing this as well, though I'm not sure it's a wine bug. Could this have something to do with the difference between 16/32 bit drivers?
It is really wine bug. I have same problem with aplications "DM Evidence, DM Vysvědčení" for school managment. There is 16-bit print module and when i want to print, i get this message: "Operation not supported on selected printer"
Why it is wine bug? Because in wine-20050725 is printing OK. But in wine-20050830 and newer i get only error message:"Operation not supported on selected printer"
I cannot do regression test, because those old wine are on my Mandriva 2008.1 uncompilled.
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #10 from Edward edi67@gazeta.pl 2008-12-01 17:01:01 --- Confirming - I can get print dialog displayed in wine-20050725. Couldn't test printing itself as I do not have any printer here, but the application seems to work ok.
http://bugs.winehq.org/show_bug.cgi?id=12231
Mateusz Hołysz mateusz_holysz@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mateusz_holysz@o2.pl
--- Comment #11 from Mateusz Hołysz mateusz_holysz@o2.pl 2009-04-22 04:24:34 --- Dear all,
I can confirm described problem with printing on Ubuntu Interpid Ibex. Is it possible to repair this bug?
Regards
MH
http://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #12 from Austin English austinenglish@gmail.com 2010-09-06 01:59:17 CDT --- The original program seems to hang when opening the file. I doubt this has been fixed though.
http://bugs.winehq.org/show_bug.cgi?id=12231
Edward edi67@gazeta.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|0.9.58. |1.3.28
--- Comment #13 from Edward edi67@gazeta.pl 2011-09-27 09:56:55 CDT --- I have just checked this under wine 1.3.28 and problem persists.
http://bugs.winehq.org/show_bug.cgi?id=12231
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other Version|1.3.28 |0.9.58. OS/Version|All |other
https://bugs.winehq.org/show_bug.cgi?id=12231
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.pity.pl/druki/in |https://web.archive.org/web |dex.php?down=p1 |/20070329160735/http://www. | |ips-infor.com.pl/pliki/druk | |i_instalacja5.exe
https://bugs.winehq.org/show_bug.cgi?id=12231
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- Still in wine 1.7.15.
https://bugs.winehq.org/show_bug.cgi?id=12231
Justin Chevrier jchevrier@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jchevrier@gmail.com
--- Comment #15 from Justin Chevrier jchevrier@gmail.com --- It appears that Druki IPS will freeze when trying to load the form from the Z: drive. If you copy the form to the C: drive and try to open it from there the app loads the form as expected, or at least it does here.
I have run across another 16-bit application (TFR3000, a custom traffic flow monitoring application) that throws up the same "Operation not supported on selected printer" error message so I did some debugging on this. In my application it was easier to see that:
0027:Call KERNEL.95: LOADLIBRARY(12f7af24 "wineps.drv.DRV") ret=127f:3835 ds=12f7 ... 0027:Call KERNEL32.LoadLibraryA(0077c954 "wineps.drv.drv16") ret=7e8af5d9 0027:Ret KERNEL32.LoadLibraryA() retval=00000000 ret=7e8af5d9
was the cause of the issue.
Both of these applications assume that the supplied printer driver is just a name without extension and indiscriminately append '.DRV' to the supplied printer driver name. In addition, because we return the 32-bit version of wineps (wineps.drv), it won't work in the 16-bit applications anyway. I'm attaching a patch (hack) that detects this and forces loadmodule to load the 16-bit version of wineps (wineps16.drv) instead. I tried hacking around in winspool to modify the code to store 'wineps16' in win.ini and the registry instead of this hack, but I was concerned that switching it in those areas may break 32-bit applications. Maybe someone with more experience in this area can comment. I'm happy to work towards modifying the stored values in win.ini and/or the registry if that's a more correct fix.
https://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #16 from Justin Chevrier jchevrier@gmail.com --- Created attachment 51427 --> https://bugs.winehq.org/attachment.cgi?id=51427 Modified module loader to force loading of 16-bit wineps
https://bugs.winehq.org/show_bug.cgi?id=12231
Justin Chevrier jchevrier@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #51427|0 |1 is obsolete| |
--- Comment #17 from Justin Chevrier jchevrier@gmail.com --- Created attachment 51459 --> https://bugs.winehq.org/attachment.cgi?id=51459 Modified module loader to force loading of 16-bit wineps
New version that's not completely broken.
https://bugs.winehq.org/show_bug.cgi?id=12231
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=12231
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=12231
--- Comment #18 from Detlef Riekenberg wine.dev@web.de ---
The driver must be "winspool", but there are many things to do first.