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 Sep 06, 2016 8:14 pm
I am using the following WinForms code to opens a document and save it as a new name. When Word 2013 tries to open the new document, I get the attached error. I've also attached the Word document I'm trying to open. What am I doing wrong?
- Code: Select all
using System;
using System.Windows.Forms;
using Spire.Doc;
namespace SpireTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Document doc = new Document(@"C:\Projects\SpireTest\Test.docx");
doc.SaveToFile(@"C:\Projects\SpireTest\TestUpdate.docx", FileFormat.Docx);
doc.Close();
doc = null;
System.Diagnostics.Process.Start(@"C:\Projects\SpireTest\TestUpdate.docx");
}
}
}
Login to view the files attached to this post.
-
SeanSwope
-
- Posts: 1
- Joined: Thu Jul 14, 2016 6:33 pm
Wed Sep 07, 2016 6:09 am
Hi,
Thanks for your feedback. I have noticed this issue and posted it to Our Dev team. Once it resolved, I will inform you. Sorry for inconvenience.
Sincerely,
Alan
E-iceblue support team
-
Alan.Li
-
- Posts: 35
- Joined: Mon Sep 05, 2016 2:51 am