jxycms
8/16/2017 - 4:53 AM

create macro shortcut in code

create macro shortcut in code

//2 dimension array
string[,] replacements = new string[14, 2];

replacements[0, 0] = "INVOICENO";
replacements[0, 1] = userInfo.GetStringValue("TaxInvoice", "");

MacroResolver resolver = MacroContext.CurrentResolver;
resolver.SetNamedSourceData(replacements);