HTML Printing error with 5.2.14


#1

Hello, when printing HTML, this particular Template worked with V5.2.12 but in 14 I get following error:
error
and here is my template:

[LAYOUT]
<div style="font-size:11px;text-align:left;width:50%">
<table>
<tr>
<td width="100"><div style="font-size:11px;text-align:left;">Date:{TICKET DATE}</div></td>
<td width="50px">.</td>
<td width="100"><div style="font-size:11px;text-align:left;">Date:{TICKET DATE}</div></td>
</tr>
</table>
</div>
–
<div style="font-size:11px;text-align:left;width:50%">
<table>
<tr>
<td width="100"><div style="font-size:11px;text-align:left;">Time:{TIME}</div></td>
<td width="50%">.</td>
<td width="100"><div style="font-size:11px;text-align:left;">Time:{TIME}</div></td>
</tr>
</table>
</div>
–
<div style="font-size:11px;text-align:left;width:50%">
<table>
<tr>
<td width="100"><div style="font-size:11px;text-align:left;">Ticket No:{TICKET NO}</div></td>
<td width="50%">.</td>
<td width="100"><div style="font-size:11px;text-align:left;">Ticket No:{TICKET NO}</div></td>
</tr>
</table>
</div>
{ENTITIES}
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K Y O U
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
<div style="font-size:11px;text-align:left;width:50%">
<table>
<tr>
<td width="80"><div style="font-size:11px;text-align:left;">{NAME}</div></td>
<td width="15"><div style="font-size:11px;text-align:right;">{QUANTITY}</div></td>
<td width="46"><div style="font-size:11px;text-align:right;">{TOTAL PRICE}</div></td>
<td width="50%">.</td>
<td width="80"><div style="font-size:11px;text-align:left;">{NAME}</div></td>
<td width="15"><div style="font-size:11px;text-align:right;">{QUANTITY}</div></td>
<td width="46"><div style="font-size:11px;text-align:right;">{TOTAL PRICE}</div></td>
</tr>
</table>
</div>
{ORDER TAGS}
[ORDERS:Gift]
– Format for gifted orders
<J00>- {QUANTITY} {NAME}|GIFT
{ORDER TAGS}
[ORDERS:Void]
– Nothing will print for void lines
[ORDER TAGS]
– Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
– Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
– Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}


#2

Code shows 50px but message shows 50%… very off.


#3

Oh I thought if it is not accepting % I tried to change it to px and try.
However the problem still persists.
I only pasted here the wrong code. Corrected it


#4

Setting non numerical values for width property was ignored for td on 5.2.12 so it wasn’t generating an error. Now we support * syntax. You can review default HTML Ticket Template to have an idea about how it can be used.