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.

Thu Feb 04, 2016 11:49 pm

So I have attached a zip file with two files. The Original.doc is my original doc, this is a stripped down doc with no content except for the offending table in it. The AfterSpire.doc is the document after I had loaded the original file and just save it. Here is what i do to the file...

Code: Select all
Spire.Doc.Document MainDocObj = new Spire.Doc.Document();
MainDocObj.LoadFromFile(FName.ToString(), Spire.Doc.FileFormat.Doc);
MainDocObj.ViewSetup.DocumentViewType = Spire.Doc.DocumentViewType.PrintLayout;
MainDocObj.SaveToFile(TName.ToString() + ".doc", Spire.Doc.FileFormat.Doc);
MainDocObj.Close();
MainDocObj.Dispose();


The Original.doc I can open in any version of Word. The AfterSpire.doc I cannot open at all, 2003 lets me open it but I still get a security warning, 2013/2016 don't let me open it at all. Any idea why this might be happening?

sdbbell
 
Posts: 5
Joined: Tue Dec 29, 2015 5:59 pm

Fri Feb 05, 2016 3:51 am

Hi,

Thanks for your posting.
I tested your word document with the latest version, Spire.Doc Pack(hot fix) Version:5.6.16, and it worked fine. Please try the version.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Feb 15, 2016 7:57 am

Hi,

Has your issue been resolved?
Thank you for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc