Spire.DocViewer for .NET is a powerful Word Viewer component for developers to display, convert and interact with Word Documents easily.

Tue Jul 28, 2020 1:53 pm

Hello!

I'm trying to load and show Docx file in Net Core WPF app (NetCore 3.1 actually) using Spire.DocViewer.Wpf.

But load operations (LoadFromFile or LoadFromStream) gives an "Operation is not supported on this planform" error message.

Does Spire.DocViewer.Wpf works on NetCore platform?

Is there are any other solution to show docx file contents on NetCore platform?

P.S. I have tried to use
this.docDocumentViewer1.LoadFromFile(dialog.FileName);
this.docDocumentViewer1.LoadFromStream(stream, Spire.Doc.FileFormat.Auto);

Alexei_Lyapin
 
Posts: 1
Joined: Tue Jul 28, 2020 11:12 am

Wed Jul 29, 2020 7:24 am

Hello,

Thanks for your inquiry.
Sorry to tell you that at present our Spire.DocViewer doesn’t support working on .NET Core platform. But we will consider adding it as a new feature to our upgrade list. If it can be implemented in the future, we will let you know.
In addition, there is an alternative solution for you, you can use our Spire.Doc (the latest version is Spire.Doc Pack(hot fix) Version:8.7.5) to convert Docx file to image and then display the image.

Sincerely,
Elena
E-iceblue support team
User avatar

Elena.Zhang
 
Posts: 279
Joined: Thu Jul 23, 2020 1:18 am

Fri Mar 15, 2024 9:13 am

Hello,

Thanks for your patient waiting.
Glad to inform you that we released the Spire.DocViewer 8.7.8, which provides WPF dlls that can work with .NET6 platform. Please refer to the following steps to apply Spire.DocViewer for WPF in .NET 6.
1. Download the Spire.DocViewer 8.7.8 package from website.
2. Import the two dlls (Spire.Doc.Wpf.dll & Spire.DocViewer.Wpf.dll) from NET6.0 folder to your project.
3. Install the following seven dependenices from Nuget manager.
Microsoft.Win32.Registry >= 5.0.0
System.Drawing.Common >= 6.0.0
System.Security.Permissions >= 6.0.0
System.Text.Encoding.CodePages >= 6.0.0
System.Security.Cryptography.Pkcs >= 6.0.0
System.Security.Cryptography.Xml >= 6.0.0
HarfBuzzSharp >=2.6.1.5
4. Add the control <spire:DocViewer Width="600" Height="600"/> in MainWindow.xaml.
screenshot-1.png

5. Run your project then you can choose the file to view.
screenshot-2.png

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.DocViewer