Tip of the day: Hide button on printing in web app

First you have a webpage with a print button on it. Inside the button, you simply code
ExecuteJavaScript "print();"to print the page with the browser's print dialog.
Next you create a style in the project. We name it "PrintHiddenStyle" for this example. Assign this style to the button you want to hide. Now you can add a page source object to your web page. There you define this html/CSS style:
<STYLE type="text/css">Simply paste this. Location for the page source is "header".
@media print
{
.PrintHiddenStyle { display: none; }
}
</STYLE>
And that's it. If your browser does CSS correctly and the name of the style in CSS and the style in your project matches, the button is not visible for printing.
Download test project:

