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