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.

Tue Feb 17, 2015 11:16 am

Hello,

we're using Spire.Doc for .Net 5.3.46. We're trying to load a word document including form fields.

Code: Select all
var doc = new Document(inputStream);


So we get the following exception on this:

System.NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an object.
at spr?.?(XmlReader A_0, FormField A_1)
at spr?.?(XmlReader A_0, ParagraphItemCollection A_1)
at spr?.?(XmlReader A_0, ParagraphItemCollection A_1)
at spr?.?(XmlReader A_0, ParagraphItemCollection A_1)
at spr?.?(XmlReader A_0, TableCell A_1)
at spr?.?(XmlReader A_0, TableRow A_1)
at spr?.?(XmlReader A_0, Table A_1)
at spr?.?(XmlReader A_0, IDocumentObject A_1)
at spr?.?(Stream A_0)
at spr?.?(spr? A_0)
at spr?.?(Document A_0)
at spr?.?(Stream A_0, Document A_1)
at Spire.Doc.Document.?(Stream A_0)
at Spire.Doc.Document.LoadFromStream(Stream stream, FileFormat fileFormat, String password)


Is there any Problem on loading word documents (docx) with form fields?

Bizerba
 
Posts: 2
Joined: Mon Feb 16, 2015 12:19 pm

Wed Feb 18, 2015 2:40 am

Hello Bizerba,

Thanks for your inquiry.

Spire.Doc supports load the documents with including form fields. Please upload your sample document(zip it) to the forum, or send it to support@e-iceblue.com to see if we can help you out.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Wed Feb 18, 2015 9:06 am

Thank you for your reply.

We have send you an email including the document.

Bizerba
 
Posts: 2
Joined: Mon Feb 16, 2015 12:19 pm

Wed Feb 18, 2015 9:23 am

Hello Bizerba,

Thanks for sharing your sample document.

I have reproduced this problem and posted it our dev team, we will inform you if there is any update.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Return to Spire.Doc