Blog author:
Megan00 | Posted on: 7/23/2012 | Category:
C# Blogs | Views: 1353 | Status:
[Member] |
Points: 75
|
Alert Moderator
I use a word component to
convert Docx to Doc with C#, VB.NET. Using this component, you can realize your docx to doc through two lines of key code. One is for you to load your docx from your system, the other is to save your loaded docx file as doc format. The whole code can be shown below.
C# for converting Docx to Doc:
using Spire.Doc;
namespace docx2doc
{
class Program
{
static void Main(string[] args)
{
Document mydoc = new Document();
mydoc.LoadFromFile(@"D:\my file\Spire.Doc.docx");
mydoc.SaveToFile("dotnetfunda.doc", FileFormat.Doc);
System.Diagnostics.Process.Start("e-iceblue.doc");
}
}
}
You can preview

This is from Weebly Top Blog
Never give up! Smile to the world!
http://excelcsharp.blog.com/
Found interesting? Add this to: