Tradepoint Business Management Solutions - Everything Business, connected.
Shopping CartCart: 0 Items, Total: $0.00
Login to your Account
Get a FREE Demo - Try Tradepoint for 30 days

POS v4 - Receipts - Working with HTML fields

May/1/2014



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.

 


Thank you for Adding an Item to your cart

# of Items Added: 1
Total of Items Added: 0.00
Continue Shopping Show Your Shopping Cart