With ReportWorkshop, you can embed Pascal or Lua scripts directly into report templates. Example use case: