Skip to content

danibs/Carbone.io-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Carbone.io-util

Carbone is a fantastic way to generate report starting from LibreOffice™ or Microsoft Office™ (ods, docx, odt, xslx...) documents. All you have to do is to add a mustache-like placeholder {d.companyName} in your template.

Table of content

The problem

You have a big template with alot of placeholder {}, i.e.:

immagine

It is very difficult to distinguish between text and placeholder. The more your template grows the more it seems a mess 😵‍💫.

The solution

The easiest thing to do is hightlight placeholders! 🤓

immagine

Minimum Requirements

LibreOffice™

Macro is tested on LibreOffice 7.5.x, but it probably works with an older version as well.

Getting started

LibreOffice™

  • download file CarboneIO-LibreOffice_Module.bas
  • open LibreOffice™ Writer
  • menu Tools > Macros > Edit Macros...

In the macros IDE:

  • menu File > Import BASIC...
  • select file CarboneIO-LibreOffice_Module.bas

Return to LibreOffice™ Writer:

  • add some text and placeholders like:

    Dear {d.name} {d.surname},
    {d.years} years have passed since we met in {d.city}.
    
  • menu Tools > Macros > Run Macro...

  • choose highlightCarbonePlaceholder

    immagine

That is! 🥳

Contributors

Many thanks to KamilLanda 💪 that helped me so much with the LibreOffice™'s macro.

About

Utility for Carbone.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published