mvysny / karibu-dsl

Kotlin Vaadin extensions and DSL
http://www.vaadinonkotlin.eu
MIT License
123 stars 16 forks source link

Reports #22

Closed dosindi closed 4 years ago

dosindi commented 4 years ago

This is not a bug on this artifact however am sourcing for a way to generate reports using karibu and JasperReports. Is there a way to integrate the two?

mvysny commented 4 years ago

Hi, the easiest way is to create a Link+Resource (for Vaadin 8) or Anchor (for Vaadin 14) with StreamSource; when the resource asks for an InputStream just produce the report from JasperReports as a PDF byte array and return that :+1: