Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Jul 08, 2020 1:13 pm

We are trying to convert a word document to one or more images using the FreeSpire.Doc nuget package.

Both of the following statements result in a MissingMethodException error.

Code: Select all
document.SaveToImages(ImageType.Bitmap);
document.SaveToImages(0, ImageType.Bitmap);


System.MissingMethodException: 'Method not found: 'SkiaSharp.SKImage[] Spire.Doc.Document.SaveToImages(Spire.Doc.Documents.ImageType)'.'

revivagroep
 
Posts: 2
Joined: Wed Jul 08, 2020 1:09 pm

Thu Jul 09, 2020 3:49 am

Hello,

Thanks for your inquiry.
According to your error message, you should be using our .NET Standard library. I created a Class Library (.NET Standard) project and installed the FreeSpire.Doc 7.11.0 from Nuget. Then I tested the case in a Console project (.NET Core) and indeed got the MissingMethodException error.

After investigation we found this is related to the internal mechanisms of VS and Nuget. In fact, the dlls of .NET Standard weren’t copied in bin/Debug folder of the when running the .NET Core application. It uses the dlls (7.11.0.41420) of netcoreapp2.0 by default, not the dlls (7.11.0.41430) of .netstandard2.0. This caused the application to throw the error. Sorry at present there is no better way to get rid of this issue.

As a workaround, you can download the FreeSpire.Doc 7.11.0 from the following links, manually reference the dlls of netStandard 2.0 folder and then install the dependency libraries (SkiaSharp (>= 1.68.0); System.Security.Cryptography.Xml (>= 4.5.0) ; System.Text.Encoding.CodePages(>= 4.5.0)) to test your case.
Website download link: https://www.e-iceblue.com/Download/down ... -free.html

If there are any questions or misunderstanding, please feel free to write back.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Jul 09, 2020 11:20 am

That solves the problem. Thanks!

revivagroep
 
Posts: 2
Joined: Wed Jul 08, 2020 1:09 pm

Fri Jul 10, 2020 1:09 am

Hello,

Thanks for your feedback.
If you encounter any issues related to our product in the future, just feel free to contact us.
Wish you all the best!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc