E-ticket

Generate your tickets with Carbone

Download Template

Download data sample

  • Template type document docx simple
  • Carbone min. v4.0.0+
  • Features loop barcode date image
  • Target ticket access control badge transport custom

Objectives

Generate a ticket with the following features:

  • Design layout
  • Date formatting
  • Barcode

Solution

Here’s how to construct a template to achieve this with Carbone:

  1. Write the title and create tables to structure your layout

    Insert Carbone tags as appropriately as possible. Manage the font and formatting to organize your information as desired.

    Note: Ensure proper cell alignment for better rendering

  2. Insert a placeholder to manage the QR Code

    Use the :barcode formatter in the Alt Text of the placeholder to insert a QR code

    Example : {d.bookingURL:barcode(qrcode)}

  3. Date manipulation

    Use the :formatD formatter to manage the date display. The default pattern follows the ISO 8601 standard.

    Examples :

    {d.it[i].depDate:formatD(MM/DD)}
    {d.it[i].arrDate:formatD('hh:mm A')} 

    Note: You can add spaces within the Carbone tag to improve formula readability and ensure better text wrapping within the cell.

  4. Iteration

    Define the iteration [i+1] on a new row to enable the iteration to run

    Example : {d.it[i+1]}

And there you go!

You might also like

Trusted by 600+ paid customers in 40+ countries

Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom
1dior.png
22thales.png
23younited.png
2danfoss.png
3cma-cgm.png
3illumina.svg
4KparK.png
6scalingo.png
7defense.png
8bmw.png
8telus.png
bestseller.png
flagship_bioscience.png
insly.png
ninox.png
sodexo.png