Unable to print with the Wine PS driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
wine-users mailing list
wine-users@winehq.com
http://www.winehq.com/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux