I'm trying to get Wine to print through it's PS driver, without success, on a HP DeskJet 694C, configured on Linux with the cdj670 driver. What I get to see on screen after I attempt to print are three windows with exclamation marks on a yellow triangle and garbled text. The first window is titled "Printer name", the second "Device name", the third "Output". After clicking OK on the third, I get Wine's Print Dialog window. If I hit OK on it, I get an unhandled exception. When I run Wine with the options --debugmsg +print,+psdrv, I get frequent 'FindPrinterInfo' and 'DeleteDC' messages, as well as numerous 'WriteSpool16' messages before the unhandled exception at the very end (which, by the way, doesn't even launch the debugger window). These are the relevant sections from ~/.wine/config: ******************** [wine] ... ;"printer" = "on" [parallelports] "Lpt1" = "/dev/lp0" [ppd] "HPDesk" = "/home/halvarado/.wine/HP-DeskJet_694C-cdj670-ppd.ppd" ;generated at www.linuxprinting.org [ppdev] ;; key: io-base of the emulated port ;; value : parport-device{,timeout} ;; timeout for auto closing an open device ( not yet implemented) ;"378" = "/dev/parport0" ;"278" = "/dev/parport1" ;"3bc" = "/dev/parport2" [spooler] "FILE:" = "tmp.ps" "LPT1:" = "|lpr" ****************************** This is the file psdrv.reg that I regapi into the registry: psdrv.reg: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver] "Attributes"="dword:00000000" "Default Devmode""Name"="Wine PostScript Driver" "Port"="LPT1:" "Print Processor"="WinPrint" "Printer Driver"="PS Driver" "Priority"="dword:00000000" "Start Time"="dword:00000000" "Status"="dword:00000000" "Until Time"="dword:00000000" [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver\PrinterDriverData] "PPD File"="/home/halvarado/.wine/HP-DeskJet_694C-cdj670-ppd.ppd" [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver\PrinterDriverData\FontSubTable] "Courier New"="Courier" "Arial"="Helvetica" "Helv"="Helvetica" "Times New Roman"="Times" [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers\PS Driver] "Configuration File"="WINEPS.DRV" "Data File"="" "Driver"="WINEPS.DRV" "Version"="dword:0a000000" "Datatype"="" "Dependent Files"="" "Help Files"="" "Monitor"="" ******************************* This is what the relevant part of system.reg looks after being fed psdrv.reg: [System\\CurrentControlSet\\Control\\Print\\Environments\\Windows 4.0\\Drivers\\PS Driver] 1032197720 "Configuration File"="wineps.drv" "Data File"="<datafile?>" "Datatype"="RAW" "Dependent Files"=str(7):"" "Driver"="wineps.drv" "Help File"="<helpfile?>" "Monitor"="<monitor name?>" "Version"=dword:00000400 [System\\CurrentControlSet\\Control\\Print\\Printers\\HPDesk] 1032197724 "Attributes"=dword:00000000 "Datatype"="RAW" "Default DevMode"=hex:48,50,44,65,73,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,0a,03,01,00,9c,00,00,00,13,7b,00,00,\ 01,00,01,00,ea,0a,6f,08,64,00,01,00,07,00,00,00,02,00,00,00,00,00,03,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00 "Description"="WINEPS Printer using LPR" "Location"="HPDesk" "Name"="HPDesk" "Parameters"="<parameters?>" "Port"="LPR:HPDeskJet" "Print Processor"="WinPrint" "Printer Driver"="PS Driver" "Priority"=dword:00000000 "Separator File"="<sep file?>" "Share Name"="<share name?>" "StartTime"=dword:00000000 "Status"=dword:00000000 "UntilTime"=dword:00000000 ******************** This is win.ini: [intl] sLanguage=Spanish (El Salvador) sCountry=El Salvador iCountry=503 s1159=a.m. s2359=p.m. sTime=: iTime=0 iTLZero=1 sShortDate=dd/MM/yyyy iDate=1 sLongDate=dddd, dd' de 'MMMM' de 'yyyy sDate=/ sCurrency=$ iCurrency=0 iNegCurr=0 iCurrDigits=2 sDecimal=. sList=, sThousand=, iDigits=2 iLZero=1 iMeasure=0 [windows] device=HPDesk,WINEPS,LPR:HPDeskJet [devices] HPDesk=WINEPS,LPR:HPDeskJet [PrinterPorts] HPDesk=WINEPS,LPR:HPDeskJet,15,45 ********************** Suggestions to get this setup to work are welcome. -- Oscar A. Valdez
Same issue here with another printers. Note that the text printed in the msgboxes is random garbage. This could be uninitialised/corrupted pointer. And, last point, the 'printing' window shouldn't be there after you get these 3 windows, or at least inactive. Are you using the cvs version ? your debugger problem should be fixed now. I have to the backtrace attached at bottom. Note that calls 6 to 9 are the same I reported in 'Question about "undefined" functions' on wine-devel and they go to 0x0 access error. See http://www.winehq.com/hypermail/wine-devel/2002/09/0385.html 1 0x413c35b7 (X11DRV.DLL.SetDeviceGammaRamp+0x7b9c17 in wineps.dll.so) (ebp=405e2648) 2 0x40a1b0e0 (GDI32.DLL.StartDocA+0x80 in gdi32.dll.so) (ebp=405e267c) 3 0x403b7cb8 (notepad.exe.EntryPoint+0x1cb8 in notepad.exe.so) (ebp=405e2b24) 4 0x403b890f (notepad.exe.EntryPoint+0x290f in notepad.exe.so) (ebp=405e2b30) 5 0x403b8c35 (notepad.exe.EntryPoint+0x2c35 in notepad.exe.so) (ebp=405e2c98) 6 0x4091701f (USER32.DLL.GetTaskmanWindow+0xdf in user32.dll.so) (ebp=405e2cbc) 7 0x40917093 (USER32.DLL.GetTaskmanWindow+0x153 in user32.dll.so) (ebp=405e2cf4) 8 0x4091da26 (USER32.DLL.CallWindowProcA+0x136 in user32.dll.so) (ebp=405e2d28) 9 0x408f721b (USER32.DLL.DispatchMessageA+0xbb in user32.dll.so) (ebp=405e2d5c) 10 0x403b914a (notepad.exe.EntryPoint+0x314a in notepad.exe.so) (ebp=405e2e00) 11 0x403b60cd (notepad.exe.EntryPoint+0xcd in notepad.exe.so) (ebp=405e2e70) 12 0x400e1be6 (start_process+0x206 [process.c] in libntdll.dll.so) (ebp=405e2f28) 13 0x400e6ce0 (call_on_thread_stack+0x90 [sysdeps.c] in libntdll.dll.so) (ebp=405e2ff4) 14 0x400e6e68 (SYSDEPS_CallOnStack+0x14 in libntdll.dll.so) (ebp=00000000) ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com
Hello, Which application you are using? For me, I first ensure CUPS test page to be sent out successfully. Before installing Lotus Notes, "ln -sf /usr/bin/lpr.cups /usr/bin/lpr". It should detect the printer I configure in CUPS. wine config file - using default is ok. You could try with notepad first. my printer is : HP Laser Jet 1200 and HP Laser Jet 4100N Hope it helps. Leanne Tsang Oscar A. Valdez wrote:>I'm trying to get Wine to print through it's PS driver, without success, on a HP DeskJet 694C, configured on Linux with the cdj670 driver. > >What I get to see on screen after I attempt to print are three windows with exclamation marks on a yellow triangle and garbled text. The >first window is titled "Printer name", the second "Device name", the third "Output". After clicking OK on the third, I get Wine's Print >Dialog window. If I hit OK on it, I get an unhandled exception. > >When I run Wine with the options --debugmsg +print,+psdrv, I get frequent 'FindPrinterInfo' and 'DeleteDC' messages, as well as numerous 'WriteSpool16' messages before the unhandled >exception at the very end (which, by the way, doesn't even launch the debugger window). > >These are the relevant sections from ~/.wine/config: > >******************** > >[wine] >... >;"printer" = "on" > >[parallelports] >"Lpt1" = "/dev/lp0" > >[ppd] >"HPDesk" = "/home/halvarado/.wine/HP-DeskJet_694C-cdj670-ppd.ppd" ;generated at www.linuxprinting.org > >[ppdev] >;; key: io-base of the emulated port >;; value : parport-device{,timeout} >;; timeout for auto closing an open device ( not yet implemented) >;"378" = "/dev/parport0" >;"278" = "/dev/parport1" >;"3bc" = "/dev/parport2" > >[spooler] >"FILE:" = "tmp.ps" >"LPT1:" = "|lpr" > >****************************** > >This is the file psdrv.reg that I regapi into the registry: > >psdrv.reg: > >[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver] >"Attributes"="dword:00000000" >"Default Devmode">"Name"="Wine PostScript Driver" >"Port"="LPT1:" >"Print Processor"="WinPrint" >"Printer Driver"="PS Driver" >"Priority"="dword:00000000" >"Start Time"="dword:00000000" >"Status"="dword:00000000" >"Until Time"="dword:00000000" > >[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver\PrinterDriverData] >"PPD File"="/home/halvarado/.wine/HP-DeskJet_694C-cdj670-ppd.ppd" > >[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\Wine PostScript Driver\PrinterDriverData\FontSubTable] >"Courier New"="Courier" >"Arial"="Helvetica" >"Helv"="Helvetica" >"Times New Roman"="Times" > >[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers\PS Driver] >"Configuration File"="WINEPS.DRV" >"Data File"="" >"Driver"="WINEPS.DRV" >"Version"="dword:0a000000" >"Datatype"="" >"Dependent Files"="" >"Help Files"="" >"Monitor"="" > >******************************* > >This is what the relevant part of system.reg looks after being fed psdrv.reg: > >[System\\CurrentControlSet\\Control\\Print\\Environments\\Windows 4.0\\Drivers\\PS Driver] 1032197720 >"Configuration File"="wineps.drv" >"Data File"="<datafile?>" >"Datatype"="RAW" >"Dependent Files"=str(7):"" >"Driver"="wineps.drv" >"Help File"="<helpfile?>" >"Monitor"="<monitor name?>" >"Version"=dword:00000400 > >[System\\CurrentControlSet\\Control\\Print\\Printers\\HPDesk] 1032197724 >"Attributes"=dword:00000000 >"Datatype"="RAW" >"Default DevMode"=hex:48,50,44,65,73,6b,00,00,00,00,00,00,00,00,00,00,00,00,00,\ > 00,00,00,00,00,00,00,00,00,00,00,00,00,0a,03,01,00,9c,00,00,00,13,7b,00,00,\ > 01,00,01,00,ea,0a,6f,08,64,00,01,00,07,00,00,00,02,00,00,00,00,00,03,00,00,\ > 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ > 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ > 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ > 00,00,00,00,00,00,00,00,00,00,00,00 >"Description"="WINEPS Printer using LPR" >"Location"="HPDesk" >"Name"="HPDesk" >"Parameters"="<parameters?>" >"Port"="LPR:HPDeskJet" >"Print Processor"="WinPrint" >"Printer Driver"="PS Driver" >"Priority"=dword:00000000 >"Separator File"="<sep file?>" >"Share Name"="<share name?>" >"StartTime"=dword:00000000 >"Status"=dword:00000000 >"UntilTime"=dword:00000000 > >******************** > >This is win.ini: > >[intl] >sLanguage=Spanish (El Salvador) >sCountry=El Salvador >iCountry=503 >s1159=a.m. >s2359=p.m. >sTime=: >iTime=0 >iTLZero=1 >sShortDate=dd/MM/yyyy >iDate=1 >sLongDate=dddd, dd' de 'MMMM' de 'yyyy >sDate=/ >sCurrency=$ >iCurrency=0 >iNegCurr=0 >iCurrDigits=2 >sDecimal=. >sList=, >sThousand=, >iDigits=2 >iLZero=1 >iMeasure=0 > >[windows] >device=HPDesk,WINEPS,LPR:HPDeskJet > >[devices] >HPDesk=WINEPS,LPR:HPDeskJet > >[PrinterPorts] >HPDesk=WINEPS,LPR:HPDeskJet,15,45 > >********************** > >Suggestions to get this setup to work are welcome. > >