E-ticket
Generate your tickets with Carbone
- Template type document docx simple
- Carbone min. v4.0.0+
- Features loop barcode price date image
- Target ticket access control badge transport
Objectives
Generate a ticket with the following features:
- Design layout
- Date formatting
- Currency formatting
- Barcode
Solution
Here’s how to construct a template to achieve this with Carbone:
Define the paper size and orientation in the page setup
- Go to the File menu to access the Page Setup window
Set the desired paper size.
If necessary, create a custom size using the Custom Sizes option.
- Go to the File menu to access the Page Setup window
Set the desired paper size.
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 alignment of cells for better rendering
- Insert Carbone tags as appropriately as possible. Manage the font and formatting to organize your information as desired.
Insert a placeholder to manage the QR Code
Number and date manipulation
- Use the :formatC formatter to manage the currency display, such as
{d[i].travel.price:formatC}
- Use the :formatD formatter to manage the date display, such as
{d[i].travel.departure:formatD(LL)}
or{d[i].travel.departure:formatD(LT)}
. The default pattern follows the ISO 8601 standard.
Note: You can add spaces within the Carbone tag to improve formula readability and ensure better text wrapping within the cell.
- Use the :formatC formatter to manage the currency display, such as
Iteration
- Define the iteration on the next page to enable the iteration to run, with
{d[i+1]}
- Define the iteration on the next page to enable the iteration to run, with
And there you go!
You might also like
Trusted by 600+ paid customers in 40+ countries
Finance
Healthcare
Public
Retail
Industries
Energy
Software
Telecom














