Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created September 7, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/a05f67bb53617c9df4bafa649cf4dd62 to your computer and use it in GitHub Desktop.
Save bjoerntx/a05f67bb53617c9df4bafa649cf4dd62 to your computer and use it in GitHub Desktop.
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