Last active
August 31, 2023 13:08
-
-
Save groupdocs-com-kb/00f1a20f1990e5ec2ef382c18f5fa676 to your computer and use it in GitHub Desktop.
How to Convert DOCX to DOC using C#. For more information, please follow link: https://kb.groupdocs.com/conversion/net/how-to-convert-docx-to-doc-using-csharp/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GroupDocs.Conversion; | |
namespace ConvertDOCXtoDOCUsingCSharp | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Set License to avoid the limitations of Conversion library | |
License lic = new License(); | |
lic.SetLicense(@"GroupDocs.Conversion.lic"); | |
// Import DOCX document | |
var converter = new GroupDocs.Conversion.Converter("input.docx"); | |
// Get conversion option for final output document | |
var conversionoptions = converter.GetPossibleConversions()["doc"] | |
.ConvertOptions; | |
// Save the DOC to disk | |
converter.Convert("output.doc", conversionoptions); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment