Vaadin does not currently have any special support for printing. Printing on the server-side is, in any case, largely independent from the web UI of an application. You just have to take care that the printing does not block server requests, possibly by running printing in another thread.
For client-side printing, most browsers support printing the web page. Vaadin
does not explicitly support launching the printing in browser, but you can
This button would print the current page, including the button itself. Often, you want to be able to print a report or receipt and it should not have any visible UI components. In such a case, you could offer it as a PDF resource, or you could open a new window, as is done below, and automatically launch printing.
How the browser opens the window, as an actual (popup) window or just a tab, depends
on the browser. Notice that calling the
Printing as PDF would not require creating a
Table of Contents