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.

Sun Oct 13, 2019 6:55 am

Hi,

I'm trying to open a docx document from a file on Ubuntu and getting the following error:
System.ArgumentNullException:
at at Spire.Doc.Fields.DocPicture.ᜉ(Image A_0)
at at Spire.Doc.Fields.DocPicture.ReplaceImage(Byte[] imageBytes, Boolean bIsKeepRation)
at at Spire.Doc.Fields.DocPicture.ᜃ(Byte[] A_0)
at at spr᳏.ᜀ(ShapeObject A_0, sprᭇ A_1)
at at spr᳏.ᜀ(sprᭇ A_0, ShapeBase A_1, Boolean A_2)
at at spr᳏.ᜀ(sprᭇ A_0, Boolean A_1)
at at spr᳏.ᜁ(sprᭇ A_0)
at at spr᷂.ᜂ(sprᶷ A_0)
at at spr᷂.ᜃ(sprᶷ A_0)
at at sprᶷ.ᜅ()
at at spr᷀.ᜀ()
at at spr᷀.ᜃ()
at at spr᷀.ᜀ(Stream A_0, Document A_1, spr᰻ A_2)
at at spr᷀.ᜀ(String A_0, Document A_1, spr᰻ A_2)
at at Spire.Doc.Document.᜘(String A_0)
at at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)
at at Spire.Doc.Document..ctor(String fileName, FileFormat type)
at ConsoleApp1.Program.Main(String[] args) in /home/developer/RiderProjects/Solution1/ConsoleApp1/Program.cs:12

The same code (with the same file) works perfectly on Windows.
Could you give advice what can be the reason or maybe any workaround?

Thank you!

irjigeiler
 
Posts: 1
Joined: Sun Sep 09, 2018 2:34 pm

Mon Oct 14, 2019 6:08 am

Hi,

Thanks for your inquiry.
To help us investigate your issue accurately, please offer us the following information.
1. Your input Word file.
2. The complete code you were using which could reproduce your issue directly.
You could upload them here or send us(support@e-iceblue.com) via email.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Return to Spire.Doc