Set the following properties in the Property Sheet for an Image Button, Link Button, or Push Button:
Property |
Value |
Button-HtmlAttributes-onClick |
JavaScript:window.print() |
After building and running the application, click your “print” button and your browser’s printer selection dialog will appear.
Note: The Java Plugin must be installed and running in your system system in order for this example to work properly.
Code Generation Tag Properties