Set the following pass-through attributes in the Properties dialog for an Image Button, Link Button, or Push Button:
|
Pass-Through Attribute |
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.