The error “The template cannot be printed due to the following errors: The string “–” is not permitted within comments” is usually encountered if an Advanced PDF Template is being used as a printing type of the transaction. It is a reserved character and it is being considered as part of the source code on… Continue reading Resolve the “String “–” Is Not Permitted Within Comments” When Using Advanced PDF Template
Tag: Advanced PDF
Sales Order Description in Wave print
To Populate the sales order description(memo) value in Wave PDF form, refer the advanced PDF code sample below Go to Customization->Forms->Advanced PDF/HTML Templates Customize the Wave PDF Update the template with below sample code Save
Remove the Gaps Between the Item Labels When Printing on Advanced PDF/HTML Template
There is a requirement to print Item Labels using Advanced PDF/HTML Templates, the labels are being printed by 3’s with large gaps in between. To minimize the gaps, an adjustment to the Item Label Template should be done. Solution Navigate to Customization > Forms > Advanced PDF/HTML Templates Click Edit beside the preferred Item Label PDF/HTML Template Top right corner: Toggle Source Code Remove the… Continue reading Remove the Gaps Between the Item Labels When Printing on Advanced PDF/HTML Template
Break Long Descriptions Using Advanced PDF/Html
There are scenarios when an Item Description on an Advanced PDF Template is too long which causes the Item row to be printed on the next page. This article shows how to split the description to print on 2 pages and display it in sub-paragraphs in multiple rows.
Remove Balance Forward Line on Statement Advanced PDF/HTML Templates
User wants to remove the Balance Forward line (first line) within the Customer Statement using the Advanced PDF/HTML Template. Solution Navigate to Customization > Forms > Transaction Forms Preferred Statement Form: Click Customize Print Template: Make a note of the Name Navigate to Customization > Forms > Advanced PDF/HTML Templates Click Edit/Customize by the Template from step 3 Top right corner: Toggle Source Code Source Code: Add an if-else tag on the line item part… Continue reading Remove Balance Forward Line on Statement Advanced PDF/HTML Templates
XML Formatting in Advanced PDF/HTML Templates
When working in advanced PDF/HTML templates, such as email, fax, and marketing, it is important that you use valid XML formatting. Invalid formatting can result in broken pages. Code can seem to work when it is opened in a single page, but the same code can cause broken pages when included in other pages, like… Continue reading XML Formatting in Advanced PDF/HTML Templates
Display number into 5 digits format in Advanced PDF template
To display any number value into print as in the format of fixed digits, refer below code sample
Display the Amount in fixed format, where amount contains $ symbol in advanced PDF template
In order to display the amount into a fixed digit format , where the amount value contains the $ symbol, refer the sample code below
Date comparison in Advanced PDF template
In order to show vale based on the date filter refer below sample
Total Amount after rounding into 2 fixed decimal place
To display the total amount after rounding into a fixed decimal place in Advanced PDF template, refer sample code below