[Bug 4268] ISS@VFP9 -unable to print

Wine Bugs wine-bugs at winehq.org
Fri Jan 13 09:43:38 CST 2006


http://bugs.winehq.org/show_bug.cgi?id=4268





------- Additional Comments From michal.okresa at ifne.sk  2006-13-01 09:43 -------
Hello,
we are trying to find solution for the ISS printing. We are using 'alien' test
machine mentioned by the bug reporter Peto. So, on this machine is installed
wine 20050310 - original Debian Sarge installation. For printing tests we are
using: "virtual printer" configured in CUPS as: Device URI:
socket://localhost:12000, name: to_file. Print requests is handled via simple
port listener in Perl. Additional printers are scx4100 and xerox_230.

The printer 'xerox_230' is default.
When we tried to print on the 'xerox_230' from ISS, this messages are shown in logs:
trace:winspool:GetDefaultPrinterW L"xerox_230,WINEPS,LPR:xerox_230"
trace:winspool:GetDefaultPrinterA 0x0000000a/0x00000104:L"xerox_230"
trace:winspool:OpenPrinterW (printerName: L" xerox_230", pDefault (nil))
trace:winspool:OpenPrinterW Can't find printer L" xerox_230" in registry

As you can see, printer name is " xerox_230" not "xerox_230". This name(with
space) is also in customized print dialog (Wine 200504 -dosen'print, but printer
visible -screenshot), but NOT in the default system dialog for printers
configuration. winspool driver uses correct name:
trace:winspool:OpenPrinterW (printerName: L"xerox_230", pDefault (nil))

We tried to make simple workaround by defining the printer ' xerox_230' in the
wine's registry (keys are copy of 'xerox_230'). Now logs is different:
trace:winspool:GetDefaultPrinterW L"xerox_230,WINEPS,LPR:xerox_230"
trace:winspool:GetDefaultPrinterA 0x0000000a/0x00000104:L"xerox_230"
trace:winspool:OpenPrinterW (printerName: L" xerox_230", pDefault (nil))
trace:winspool:DocumentPropertiesA (0x10042,0x1, xerox_230,(nil),(nil),0)
trace:winspool:OpenPrinterW (printerName: L" xerox_230", pDefault (nil))
trace:winspool:GetPrinterDataExA (0x2, "PrinterDriverData", "PPD File" (nil),
(nil), 00000000, 0x406bc094)
warn:winspool:GetPrinterDataExA Can't open subkey "PrinterDriverData"
err:psdrv:PSDRV_FindPrinterInfo Error 2 getting PPD file name for printer '
xerox_230'
trace:winspool:ClosePrinter Handle 0x2
trace:winspool:DocumentPropertiesA (0x10042,0x1, xerox_230,0x489c0b18,(nil),2)
trace:winspool:OpenPrinterW (printerName: L" xerox_230", pDefault (nil))
trace:winspool:GetPrinterDataExA (0x2, "PrinterDriverData", "PPD File" (nil),
(nil), 00000000, 0x406bc094)
warn:winspool:GetPrinterDataExA Can't open subkey "PrinterDriverData"
err:psdrv:PSDRV_FindPrinterInfo Error 2 getting PPD file name for printer '
xerox_230'

Missing PPD file, ok so we added [ppd] section to the wine's config:
[ppd]
"generic" = "/tmp/generic.ppd"

Next tests was made on 'to_file' as default printer, because we have no local
access to the xerox_230.

Printing from wine's notepad is always succesful without errors. Command:
WINEDEBUG="+winspool" wine "c:\\windows\\notepad.exe". Also when we changed
printer in the system dialog, no error messages was generated.

Now ISS/VFP9 is able to print without errors in logs, but output are only lines
without text. When we tried to change printer in ISS, no action was made and no
errors or warning was in logs -- printer is still cups default.

When we tried to change windows type for ISS from 'nt40' to 'winxp' or
'win2000', no printers are available in the ISS customized print dialog and this
line is repeated in logs:
fixme:commdlg:PrintDlgExA stub
System dialog for printer configuration works fine from ISS application.

Best regards

--
Michal Okresa
 





-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list