POS v4 - Receipts - Working with HTML fields
Document Title 3
Various data fields in Tradepoint store HTML content. For example; the Notes field on Invoices/Orders are full HTML fields within the database. Although Tradepoint POS does not use HTML content within the system, since transactions are pulled across systems the fields may have HTML content causing display problem on receipts.
To ensure the receipt removes any HTML tags before the content is printed on the receipt, you can use the following script on the BeforePrint event on the specific labels in the report designer.
string strValue = GetCurrentColumnValue("FieldName").ToString();
string result = System.Text.RegularExpressions.Regex.Replace(strValue, @"<[^>]*>", String.Empty);
labelName.Text = result.Trim();
The video below walks through the setup of the script from within the receipt designer in the POS.