Created
February 7, 2023 10:44
-
-
Save bjoerntx/17b5489809bdee526e02aae62e54ae84 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
private void ImportSpreadsheets(string filename, string[] sheetNames) { | |
foreach (string sheetName in sheetNames) { | |
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings() { | |
DocumentPartName = sheetName | |
}; | |
textControl1.Selection.Load(filename, TXTextControl.StreamType.SpreadsheetML, ls); | |
} | |
} | |
ImportSpreadsheets("cashflow.xlsx", new string[] { "2021", "2022" }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment