Exception when printing

Hi,

I have a rich text box and a button that calls the PrintDocumentCommand.

Whenever I try to print - whether to PDF, XPS or to a real printer - I get an exception when I click the system print button.

The callstack can be seen here: https://pastebin.com/FmNLp4mp


Note: I am running Windows 8.1 with .net core 3.

Thanks,
Josh

3 Replies

PS Premkumar Sundaramoorthy Syncfusion Team May 18, 2020 12:20 PM UTC

Hi Josh,

Thank you for contacting Syncfusion support.

We have checked PrintDocumentCommand in .Net Core 3.0 WPF application. But we couldn’t reproduce the reported issue. Here we have attached the sample which we created, please check this sample if your use case is different please modify and share the same sample to proceed further on this issue.

https://www.syncfusion.com/downloads/support/forum/154303/ze/RTE_NetCore_Print595921284

Please let us know if you have any other questions.

Regards,
Premkumar
 



JO Josh May 18, 2020 05:10 PM UTC

Hi Premkumar,

Thank you for that sample. Unfortunately I am getting the same exception when I click print.

I believe it may relate to this issue raised on .net core WPF: https://github.com/dotnet/wpf/issues/2609 In which case, it might not be possible for Syncfusion to fix it.

I have tested this on Windows 10 and do not get the exception, it only seems to effect Windows 8.1.

Windows 8.1 (version 6.3.9600)
.Net Core 3.1.3
.Net Core Windows Desktop 3.1.3

Thanks,
Josh



PS Premkumar Sundaramoorthy Syncfusion Team May 19, 2020 01:42 PM UTC

Hi Josh,

Thanks for your update,

Yes, it seems to be reproduced only on windows 8 OS. Since it is working fine in windows 10, as you said it is not specific for SfRichTextBoxAdv control it is platform level issue. So, we consider this issue as a limitation.

Please let us know if you have any other questions.

Regards,
Premkumar 


Loader.
Up arrow icon