WPF printing (Print Ticket API)

Questions about Wine on Linux
Post Reply
a_korolev
Newbie
Newbie
Posts: 1
Joined: Wed Oct 03, 2018 3:20 am

WPF printing (Print Ticket API)

Post by a_korolev » Wed Oct 03, 2018 3:54 am

Alt Linux. Wine-staging 3.13, .NET 4.5 installed. The WPF application works fine, except for printing.
When app try to print the exception thrown:

Code: Select all

External component has thrown an exception.
StackTrace:
   at MS.Internal.Printing.Configuration.UnsafeNativeMethods.PTOpenProviderExImpl(String deviceName, Int32 maxVersion, Int32 prefVersion, SafePTProviderHandle& handle, Int32& usedVersion)
   at MS.Internal.Printing.Configuration.UnsafeNativeMethods.PTOpenProviderEx(String deviceName, Int32 maxVersion, Int32 prefVersion, SafePTProviderHandle& handle, Int32& usedVersion)
   at MS.Internal.Printing.Configuration.PTProvider..ctor(String deviceName, Int32 maxVersion, Int32 clientVersion)
   at MS.Internal.Printing.Configuration.PTProviderBase.Create(String deviceName, Int32 maxVersion, Int32 clientVersion)
   at System.Printing.Interop.PrintTicketConverter..ctor(String deviceName, Int32 clientPrintSchemaVersion)
   at MS.Internal.Printing.Win32PrintDialog.ProbeForPrintingSupport()
   at MS.Internal.Printing.Win32PrintDialog.ShowDialog()
   at System.Windows.Controls.PrintDialog.ShowDialog()
Wine console output is:

Code: Select all

wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting
wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting
wine: Call from 0x7b43d526 to unimplemented function prntvpt.dll.PTOpenProviderEx, aborting
I tried to replace this library in winecfg to native from Windows7 x86, but without success. Exception message and stack is same as previous, Wine output is following:

Code: Select all

0009:fixme:winspool:GetPrinterW Unimplemented level 1
0009:fixme:ntdll:EtwEventRegister ({c89b991e-3b48-49b2-80d3-ac000dfc9749}, 0x2e458f6d, 0x2e46c3b8, 0x2e46d960) stub.
wine: Call from 0x7bc77ff1 to unimplemented function GDI32.dll.GdiIsUMPDSandboxingEnabled, aborting
wine: Call from 0x7b43d526 to unimplemented function GDI32.dll.GdiIsUMPDSandboxingEnabled, aborting
wine: Call from 0x7b43d526 to unimplemented function GDI32.dll.GdiIsUMPDSandboxingEnabled, aborting
How do I get WPF printing under Wine?

Post Reply