Created
March 4, 2024 15:09
-
-
Save bjoerntx/4bf14a71f50da832d84b5ba445c8e8a6 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
TXTextControl.LoadSettings loadSettings = new TXTextControl.LoadSettings() | |
{ | |
ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWordTXFormFields | |
}; | |
using (TXTextControl.ServerTextControl serverTextControl = | |
new TXTextControl.ServerTextControl()) | |
{ | |
serverTextControl.Create(); | |
serverTextControl.Load("contentcontrols.docx", | |
TXTextControl.StreamType.WordprocessingML, loadSettings); | |
foreach (FormField ff in serverTextControl.FormFields) | |
{ | |
Console.WriteLine(ff.Text); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment