Created
April 29, 2023 09:40
How to Convert XLSX to DOCX using C#. For more information, please follow link: https://kb.conholdate.com/total/net/how-to-convert-xlsx-to-docx-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 ConvertXLSXtoDOCXusingCSharp | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// Set the license to avoid the limitations of the Conversion library | |
License license = new License(); | |
license.SetLicense(@"GroupDocs.Conversion.lic"); | |
// Import the XLSX document | |
var converter = new GroupDocs.Conversion.Converter("input.xlsx"); | |
// Get the conversion options for DOCX output | |
var docxConversionOptions = converter.GetPossibleConversions()["docx"] | |
.ConvertOptions; | |
// Save the DOCX to disk | |
converter.Convert("ConvertXLSXtoPDFusingCSharp.docx", docxConversionOptions); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment