Created
May 31, 2024 13:51
-
-
Save bjoerntx/ee3fa1a75c4142707344529e12c610a6 to your computer and use it in GitHub Desktop.
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
try | |
{ | |
using TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl(); | |
tx.Create(); | |
tx.Load("document.docx", TXTextControl.StreamType.WordprocessingML); | |
tx.Save(out string plainText, TXTextControl.StringStreamType.PlainText); | |
Console.WriteLine(plainText); | |
} | |
catch (Exception ex) | |
{ | |
Console.WriteLine($"An error occurred: {ex.Message}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment