Glimmer DSL for SWT v4.20.15.0 ships with printing support for any widget (except shell) via a `widget#print` method that works without requiring an org.eclipse.swt.graphics.GC object as SWT usually demands (it automatically builds it). It takes a snapshot of the widget content and prints it after showing a print dialog.
This is Hello, Print Dialog!, which does printing manually by building/using a GC (graphical context) argument.
This is Hello, Print!, which takes advantage of the `widget#print` method automatic approach (caveat: it always assumes a single page fits the content).
Happy Glimmering!
No comments:
Post a Comment