Trouble printing, missing text, in Invoice Program

Questions about Wine on Linux
Locked
mpratt14
Newbie
Newbie
Posts: 2
Joined: Sun Nov 27, 2016 3:15 am

Trouble printing, missing text, in Invoice Program

Post by mpratt14 »

Whenever I print or have the program show a print preview the pages have missing text and text that is not aligned properly with the design of the document (borders of the tables). Some text is aligned properly and some not, and some horizontal lines go right through unaligned text in tables. There is also text in some other areas that is missing completely. Not sure if this a .dll issue or a .drv issue or what...I have already played around with the DLL Overrides as much as I could and copied DLLs from the original program files to get every other feature to work correctly.

Following is the output of WINEDEBUG=warn+all from the moment that I click print

Code: Select all

fixme:file:ReplaceFileW Ignoring flags 3
warn:module:load_builtin_dll failed to load .so lib for builtin L"C:\\Program Files\\ProVenture\\Invoices\\localspl.dll": /home/mark/.wine/dosdevices/c:/Program Files/ProVenture/Invoices/localspl.dll: invalid ELF header
warn:module:alloc_module disabling no-exec because of L"spoolss.dll"
warn:ntdll:FILE_CreateFile L"\\??\\C:\\users\\mark\\Temp\\wine_ppds\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\3\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps.drv"
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps.drv"
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\3\\wineps.drv" not found (c0000034)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\0\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps16.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps16.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps16.drv"
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps16.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps16.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps16.drv"
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\0\\wineps16.drv" not found (c0000034)
warn:module:load_builtin_dll cannot open .so lib for builtin L"wineps16.drv": /usr/bin/../lib/i386-linux-gnu/wine/wineps16.drv.so: cannot open shared object file: No such file or directory
warn:module:load_dll Failed to load module L"C:\\windows\\system32\\spool\\drivers\\win40\\0\\wineps16.drv"; status=c0000135
warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\Program Files\\ProVenture\\Invoices\\wineps.drv" not found (c0000034)
warn:ntdll:NtQueryAttributesFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:ntdll:NtQueryAttributesFile L"\\??\\C:\\Program Files\\ProVenture\\Invoices\\wineps.drv" not found (c0000034)
warn:ntdll:NtQueryAttributesFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:psdrv:PSDRV_UpdateDevCaps Requested resolution 300x300 is not supported by device
warn:winspool:WINSPOOL_GetStringFromReg Got ret = 2
warn:winspool:WINSPOOL_GetStringFromReg Got ret = 2
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\users\\mark\\Temp\\wine_ppds\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\3\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps.drv"
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps.drv"
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86\\3\\wineps.drv" not found (c0000034)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\0\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps16.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps16.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps16.drv"
warn:ntdll:FILE_CreateFile L"\\??\\H:\\wineps16.drv" not found (c0000034)
warn:file:CreateFileW Unable to create file L"wineps16.drv" (status c0000034)
warn:file:CopyFileExW Unable to open source L"wineps16.drv"
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\win40\\0\\wineps16.drv" not found (c0000034)
warn:module:load_builtin_dll cannot open .so lib for builtin L"wineps16.drv": /usr/bin/../lib/i386-linux-gnu/wine/wineps16.drv.so: cannot open shared object file: No such file or directory
warn:module:load_dll Failed to load module L"C:\\windows\\system32\\spool\\drivers\\win40\\0\\wineps16.drv"; status=c0000135
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\" not found (c0000035)
warn:ntdll:FILE_CreateFile L"\\??\\C:\\windows\\system32\\spool\\drivers\\w32x86" not found (c0000035)
warn:cursor:create_xcursor_system_cursor no system cursor found for L"MFC42.DLL,30978"
Any help is appreciated, thanks
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Trouble printing, missing text, in Invoice Program

Post by Bob Wya »

@mpratt14,

Can you try re-installing your invoicing application in a clean 32-bit WINEPREFIX. See WineHQ FAQ: 6.5 Wineprefixes ...

Don't try to be clever and try to override every DLL under the sun. It's best to let the wine console output guide these choices...

Try installing the latest development version of Wine - if you haven't already (currently version 2.8)... See WineHQ Download .

To test your new WINEPREFIX installation try starting the application in the installation directory:

Code: Select all

cd "${WINEPREFIX}/drive_c/Program Files/ProVenture"
wine start "???.exe"
substituting whatever the actual application executable path and name are.

Bob
mpratt14
Newbie
Newbie
Posts: 2
Joined: Sun Nov 27, 2016 3:15 am

Re: Trouble printing, missing text, in Invoice Program

Post by mpratt14 »

Hi Bob,

Thanks for informing me about the WineHQ versions. I had no idea about anything higher than version 1.8.

So here's where I am right now...

I started using 2.0.1. Upon loading the program it informs me of DLL's that it cannot load. Mostly importantly mfc42.dll and afc100.dll. I have discovered that all I need to get the program to run properly is to copy these DLL's, along with clacadv.dll from the original windows machine to the wineprefix, register them, and add override entries for them and no others. Another thing I have done in the past is replace ole32.dll with a larger Windows copy, but I guess that isn't necessary (although I still get some lines of err:ole). Somewhere on this site for a similar program it has also been suggested to override gdiplus and riched32 as well, but in version 2 and above (maybe in 1.8 too) it does not seem necessary.

I am still stuck, however. This time, I am not able to print or generate a print preview at all and the program hangs. I went to version 2.8 and its the same thing. I have a feeling that some of the winetricks stuff that I have done in the past actually makes a difference although I am not sure exactly which ones fix this.

Here is the output as I run the program

Code: Select all

fixme:reg:RegOpenUserClassesRoot (0x68, 0x0, 0x2000000, 0x33f124) semi-stub
fixme:ole:NdrCorrelationInitialize (0x33e624, 0x33e700, 1024, 0x0): semi-stub
fixme:ole:NdrCorrelationFree (0x33e624): stub
fixme:reg:RegOpenUserClassesRoot (0x70, 0x0, 0x2000000, 0x33f8e8) semi-stub
Error at file "C:\Program Files\ProVenture\Invoices\config.xml", line 9, column 39
   Message: Unknown element 'Dir_Backgrounds'
Error at file "C:\Program Files\ProVenture\Invoices\config.xml", line 9, column 39
   Message: Attribute 'system_dir' is not declared for element 'Dir_Backgrounds'
Error at file "C:\Program Files\ProVenture\Invoices\config.xml", line 16, column 40
   Message: Unknown element 'Dir_DefaultMerge'
Error at file "C:\Program Files\ProVenture\Invoices\config.xml", line 16, column 40
   Message: Attribute 'system_dir' is not declared for element 'Dir_DefaultMerge'
Error at file "C:\Program Files\ProVenture\Invoices\config.xml", line 16, column 75
   Message: Element 'Dir_Backgrounds' is not valid for content model: 'All(Dir_Cliparts,Dir_NewsFlash,Dir_Skins,Dir_OrderInfo,Dir_Help,Dir_DefaultDoc)'
err:module:DelayLoadFailureHook failed to delay load comctl32.dll.HIMAGELIST_QueryInterface
wine: Call from 0x7b43e4d2 to unimplemented function comctl32.dll.HIMAGELIST_QueryInterface, aborting
fixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for 80000100
fixme:reg:RegOpenUserClassesRoot (0x170, 0x0, 0x2000000, 0x32f738) semi-stub
fixme:file:ReplaceFileW Ignoring flags 3
And here is the output when I try to get a print preview

Code: Select all

fixme:advapi:RegisterEventSourceW ((null),L"Print"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0xc0000017,0x4033b90,0x0002,0x00000000,0x32df50,(nil)): stub
err:eventlog:ReportEventW L"CUPS_PDF"
err:eventlog:ReportEventW L"CUPS_PDF"
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0xc0000017,0x4033cd0,0x0002,0x00000000,0x32df50,(nil)): stub
err:eventlog:ReportEventW L"HP-Officejet-Pro-6830_HPLIP_COLOR"
err:eventlog:ReportEventW L"HP-Officejet-Pro-6830_HPLIP_COLOR"
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0xc0000017,0x4033da0,0x0002,0x00000000,0x32df50,(nil)): stub
err:eventlog:ReportEventW L"Officejet_Pro_6830_CloudPrint"
err:eventlog:ReportEventW L"Officejet_Pro_6830_CloudPrint"
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0xc0000017,0x4033e70,0x0002,0x00000000,0x32df50,(nil)): stub
err:eventlog:ReportEventW L"Officejet_Pro_6830_HPLIP_GRAY"
err:eventlog:ReportEventW L"Officejet_Pro_6830_HPLIP_GRAY"
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0xc0000017,0x4033f18,0x0002,0x00000000,0x32df50,(nil)): stub
err:eventlog:ReportEventW L"Save_to_Google_Drive"
err:eventlog:ReportEventW L"Save_to_Google_Drive"
fixme:netapi32:DsRoleGetPrimaryDomainInformation ((nil), 1, 0x32e840) stub
fixme:advapi:LsaOpenPolicy ((null),0x32e7d8,0x00000001,0x32e7d0) stub
fixme:advapi:LsaClose (0xcafe) stub
err:ntdll:RtlpWaitForCriticalSection section 0x75bfc340 "?" wait timed out in thread 0036, blocked by 0009, retrying (60 sec)
The last line loops over and over if I leave it. I have read that this is a generic bug message that doesn't directly tell of the problem.

Thanks
Locked