Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 38360 |  Welcome, Guest!   Register  Login
 Home > Blogs > C# > Best Solution to Convert Docx to Doc with C# ...
Megan00

Best Solution to Convert Docx to Doc with C#

 Blog author: Megan00 | Posted on: 7/23/2012 | Category: C# Blogs | Views: 1448 | Status: [Member] | Points: 75 | Alert Moderator   
Ads

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:



 More Blogs from Megan00

     More ...

    Experience:1 year(s)
    Home page:http://www.dotnetfunda.com
    Member since:Wednesday, July 11, 2012
    Level:Starter
    Status: [Member]
    Biography:CS is not what I learn in college,but I am passionate in programming. especially for C#, which is my start language learning. I plan to know more languages such as C++, C, java and so on. So Very happy to come here.
    >> Write Response - Respond to this post and get points

    More Blogs

    About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
    General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
    Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/20/2013 6:10:32 AM