Go to website
Best tuto, tips and tricks 🍬
How to create a template?
How create a template and render it on Carbone Studio? Create a template on Carbone studio is easy. You need LibreOffice or Microsoft word and a free account on Carbone Studio. Create a template You can create writer document, calc spreadsheet or event presentation. Open libre office or Microsoft word Choose the type of document you want. Design your template Then use your editor functionnalities to design it. You can add header, footer...
How to insert a page break without having a blank page at the end of the report?
Inserting page break without an extra blank page To insert a page break between each repetition section, you have two options: A - Insert a page break within the repetition section B - Or use paragraph options of Word to insert a page break before each new paragraph Example A - page break Template with page break
Style guide to design a report
Carbone Style Guide This is the official style guide for Carbone specific code. If you use Carbone in a project, it’s a great reference to avoid errors, bikeshedding, and anti-patterns. Essential These rules help prevent errors, so learn and abide by them at all costs. Exceptions may exist, but should be very rare and only be made by those with expert knowledge of Carbone. The following checklist avoids unexpected behaviors, avoids c
How to keep merged rows inside a table loop?
How to keep merged rows inside a table loop? Carbone can't keep a merged rows when it is mixed with a loop of rows, the column will be transformed as a row on the generated report. This article is about creating a document that contains a table with merged columns mixed with loop of rows, such as: Table example with merge rows Solution Create a table inside a table, such as:
What can I do when I got rendering error message? (List below)
When rendering reports through Carbone Studio or Carbone Render, it is possible to receive error messages and it is due to design issue inside the template. If one of the following error occurs, read the Style Guide checklist. List of common errors: Error: could not open document : The generated document is corrupted due to a design issue, it can come from markers, loops, formatters, conditional blocks, dyn
Replace colors dynamically according to conditions
Replace color dynamically according to conditions Inserting color conditionally is possible only with the formatter :ifEqual. It takes 3 arguments, in order: value to test the equality (ex: true, false, -1, 0, etc...) the value to return if the value is valid, it can be a marker the value "true", it is required to make the condition work inside the bindColor. Example In this situation, we want
Why conditional formatters are adding empty lines? (showBegin/hideBegin)
Solution When using conditional formatters showBegin/showEnd or hideBegin/hideEnd, insert only Break-lines (shift + Enter). Details It exist 2 ways to create a line: Break-line : The new line is part of the current paragraph by hitting shift + Enter. Behind the scenes, Carbone don't have to reorder the XML because everything is in the same paragraph. New-line : Close the current paragraph and open a new one, the standard "command" is the Enter key. Creating a n
Render a line feed into a document
Render a line feed into a document The line feed, also known as a "Carriage Return", a "New Line", and the n character, can be rendered into ODT and DOCX documents with the formatter ":convCRLF”. Learn more about the formatter: https://carbone.io/documentation.html#convcrlf- CRLF Fo
Insert a watermark dynamically
Insert a watermark dynamically It exists 2 solutions: Insert a watermark as a marker on your template. It is possible to change the color, orientation, and opacity of the watermark. (e.g. Example 1 with Libre Office, Example 2 with MS Word) Insert a watermark as a PDF rendering option when requesting Carbone Render API. The watermark will be green, it is not possible to change the color, orientation, and opacity. (e.g. [Exampl
How to hide or show a drawing according to conditions? (lines, circles, squares)
Tutorial: Hide or show drawings (circles, circles, squares) on reports This tutorial is working only for DOCX and ODT files. It is not possible to hide and show drawings dynamically on ODG, ODP and PPTX files. As every elements are "floating", there's no "anchor" notion and blocks of elements. 1. Insert the drawing A line is inserted on the ODT document. ![Line on an ODT document](https://storage.crisp.chat/users/helpdesk/website/f355e91d7615e000/screenshot-2021-07-01-at-17221_16ie5yu.
Insert dynamic images as shapes (Rounded square, Oval)
Insert dynamic images as shapes (Rounded square, Oval) 1. insert a temporary picture on the template 2. Crop the image to a shape 3. Insert in the alternative text of the image a marker !