Print Preview black screen
Page 1 of 1

Author:  therapon [ Tue May 02, 2017 12:18 am ]
Post subject:  Print Preview black screen

I've tried TW on several flavors of Ubuntu from 14.04 on, also OpenSUSE Tumbleweed. Since the results are uniform, it must be a WINE issue, not Linux. Any WINE version later than 2.0 puts up a black screen for the document area in print preview. WINE versions up through 2.0 display the print preview properly. The work on WINE lately has been heavy on Direct3D support, also some Direct2D things as well. When opening the print preview using WINE 2.1 or greater, I see this error in the console:

err:virtual:NtMapViewOfSection map_file_into_view 0x1760000 1fd000 000000000 failed

Any idea what to do to fix it? Thanks.


Author:  therapon [ Tue May 30, 2017 5:57 pm ]
Post subject:  Re: Print Preview black screen

Well... WINE is up to 2.9 now and the issue is still there. It's only an issue with theWord, too. No other application I use has any trouble with WINE versions later than 2.0. RichViewActionTest works properly including Print Preview in all versions of WINE. I have not found any help for the error in the WINE forums or elsewhere.

It would be a real bummer to have to stay at WINE 2.0 because Print Preview in theWord doesn't work right in newer versions.

Author:  therapon [ Tue Aug 08, 2017 3:41 pm ]
Post subject:  Re: Print Preview black screen

WINE is at 2.13 now and I am no longer getting the error message when I open the print preview. However, the preview is still broken. Just a black area where the page should display with a circle instead of the magnifying glass. Scroll up or down and what was previously hidden shows the page and margins but no text. It prints correctly, only the preview is affected.

Is anyone else running WINE 2.0+? Are you having this problem?


Author:  jonathangkoehn [ Tue Aug 08, 2017 6:40 pm ]
Post subject:  Re: Print Preview black screen

Do you have a specific print driver installed? I noticed that printing in theWORD I believe depends on what is the default print driver. Not sure it is the same in WINE though this seems to be so in Windows.

Author:  therapon [ Tue Aug 08, 2017 8:01 pm ]
Post subject:  Re: Print Preview black screen

According to WineHQ, WINE interacts with CUPS directly so any printer setup and working correctly in Linux should work correctly with WINE. The printer I use is the CUPS-PDF printer, with the driver supplied by the operating system. It functions properly with every other Windows app I have tried (in WINE, of course) and theWord preview works properly on any WINE version up through 2.0 so I don't think that's the problem. That's how I figured out the issue - I upgraded WINE, it broke print preview, I downgraded WINE and it worked again. During that process nothing other than WINE-specific files changed. And as I noted earlier, theWord prints to PDF correctly; it is just the preview that is broken.


Author:  therapon [ Wed Aug 09, 2017 4:20 pm ]
Post subject:  Re: Print Preview black screen

I tried a couple more things. If no printers are defined, the document area in print preview is blank. I also set up a second printer and forced it to be the default. Same results as with CUPS-PDF.

Author:  therapon [ Mon Sep 25, 2017 8:25 pm ]
Post subject:  Re: Print Preview black screen

For what it is worth, I have a virtual machine with WINE in it, v2.15. I replaced with the same file from WINE v2.0. It wasn't perfect but it mostly worked. Seems like whatever the changes to WINE's gdi32.dll are at or close to the root of the problem. I am not saying the builtin dll is at fault, rather changes WINE developers made to improve the code break something nonstandard in theWord. The only thing affected is print preview in theWord. All other parts of theWord work as expected, all other Windows applications I run under WINE work as expected.


Author:  therapon [ Fri Oct 06, 2017 7:37 pm ]
Post subject:  Re: Print Preview black screen

In either WINE 2.16 or 2.17 the print preview issue went away. They made a few changes in gdi32 in 2.16 that might be related. Anyway it works properly now.

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group