Created
September 7, 2016 09:15
-
-
Save bjoerntx/a05f67bb53617c9df4bafa649cf4dd62 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
ReportingCloud rc = new ReportingCloud("username", "password"); | |
FindAndReplaceBody body = new FindAndReplaceBody(); | |
body.FindAndReplaceData = new List<string[]> { | |
new string[] { "Invoice", "ReplacedText" }, | |
new string[] { "Invoice2", "ReplacedText2" } | |
}; | |
byte[] bDocument = rc.FindAndReplaceDocument(body, "invoice.tx", ReturnFormat.HTML); | |
string sHtmlDocument = System.Text.Encoding.UTF8.GetString(bDocument); | |
Console.WriteLine(sHtmlDocument.Contains("ReplacedText")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment