I am trying to set up Wine to be able to print. I am able to print from Linux I am able to print ps from Linux I am following a combination of the westfalen HOWTO and the Wine documentation (assuming that the documentation is more up to date) I am testing by trying to print from notepad. I have got as far (after too many hours!!) as the following when I select the Print option err:winspool:WINSPOOL_GetDevModeFromReg corrupted registry for L"Default DevMode" ( Size 0) (twice) and an unhandled exception According to Gerard I ought to try removing the DevMode lines from the registry I have and it hasn't helped. What do I try next? Bill
On Wed, 05 Sep 2001 20:12:58 GMT, "Bill Medland" <medbi01@accpac.com> wrote:>I am trying to set up Wine to be able to print. > >I am able to print from Linux > >I am able to print ps from Linux > >I am following a combination of the westfalen HOWTO and the Wine >documentation (assuming that the documentation is more up to date) > >I am testing by trying to print from notepad. > >I have got as far (after too many hours!!) as the following when I select >the Print option > >err:winspool:WINSPOOL_GetDevModeFromReg corrupted registry for L"Default >DevMode" ( Size 0) >(twice) >and an unhandled exception > >According to Gerard I ought to try removing the DevMode lines from the >registry > >I have and it hasn't helped.Are you trying to use 'native' windows printer driver ? This was broken a long time ago and - AFAIK - nobody has reported any success for a long time. I have some vague idea to have a new try at it some day but I have so many strange problems currently :-/ OTOH the builtin printing works fine for me on my Mandrake 8 - this distro use CUPS for printing and it works out of the box as Marcus Meissner said it would :-) Gerard
Apply this patch to winspool and try again. At least I can generate a PostScript file. -------------- next part -------------- A non-text attachment was scrubbed... Name: winspool.diff Type: application/octet-stream Size: 3333 bytes Desc: not available Url : http://www.winehq.org/pipermail/wine-users/attachments/20010907/fe64daca/winspool.obj
TAKESHIMA Hidenori wrote:> > Apply this patch to winspool and try again. > At least I can generate a PostScript file. > > ------------------------------------------------------------------------ > Name: winspool.diff > winspool.diff Type: unspecified type (application/octet-stream) > Encoding: quoted-printableThanks very much for the help. Are you going to be sending that patch in or is it a workaround which becomes redundant if I add the appropriate hex data to the registry? (The documentation/samples/psdrv.reg and the HOWTO/manuals seem to suggest that the Default DevMode can be left blank.) What is that "use the default hard-coded DevMode(wineps/A4/300dpi)" about? I presume it means "Use a suitable registry editor to add the entry, taking the data from the default hard-coded values specified in the WINSPOOL_GetDefaultDevMode function. That data corresponds to the builtin wineps driver with A4 paper, capable of 300 dpi" I currently have proven my ability to print from Notepad (although for some reason I must go into the Page Setup dialog before selecting the Print, otherwise it fails). -- Bill Medland