Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Mon Jul 04, 2011 9:22 pm

I've tested standard edition in may application and every thing went ok. But I will need to convert from doc to pdf so I installed PRO Edition to test it, but in document instantiation by stream I get an error.

System.IO.MemoryStream st = new System.IO.MemoryStream(Document.Template.File.Data);
Spire.Doc.Document doc = new Spire.Doc.Document(st, FileFormat.Docx);

This code with standard edition was ok, but with PRO Edition i get the error: "The file format cannot be supported."

Can you help me with this?

Best regards,

Nuno Jesus

Posts: 3
Joined: Thu Jun 30, 2011 2:28 pm

Mon Jul 04, 2011 9:31 pm

I forgot to say that my document is from office 2010.
I also tested docx2010 fileformat that was not present in standard edition but i get the same error.
Spire.Doc.Document doc = new Spire.Doc.Document(st, FileFormat.Docx2010);

Posts: 3
Joined: Thu Jun 30, 2011 2:28 pm

Tue Jul 05, 2011 8:43 am

Dear nunojesus,
Thanks for your inquiry.
Please download a latast version which fixed this problem.http://www.e-iceblue.com/Download/download-word-for-net-now.html
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Return to Spire.Doc