score:1
the most recent plugin about printing and printing preview is:
a simple, light weight, extensible java printing plug-in for swt.
paperclips hides the complexity of laying out and rendering documents on the printer, helping you focus on what to print instead of how to print it.in a nutshell, paperclips provides an assortment of document "building blocks," which you can tweak and combine to form a custom document.
the assembled document is then sent to paperclips for printing.
paperclips includes support for printing text, images, borders, headers and footers, column layouts and grid layouts, to name a few. it can also be extended with your own printable classes.
here in an example in this article:
alt text http://www.schmeeky.co.uk/assets/drgalleries/19/thumb_print_dialog.png
score:1
eclipse does a terrible job printing on windows. but there is an excellent version of enscript that works for windows and does great printouts. you have to set it up as an external tool which is a bit of a bear, but once it's setup it works well.this how i installed it on xp.
download and install enscript for windows
http://gnuwin32.sourceforge.net/downlinks/enscript-src.phpcreate an external tool for running enscript in eclipse
goto eclipse, run -> configure external tools.
add a tool (icon looks lie a miniature document with +)
name it "run enscript". configure as follows:main tab
location : browse to the enscript executable. should be in:
c:\program files\gnuwin32\bin\enscript.exe
working directory: leave empty
arguments:--header=${resource_name} -p "${workspace_loc}\${project_name}\print.ps" "${resource_loc}"
(these options will create a postscript file named print.ps at the top level of your project from the currently selected window.)build tab
clear "build before launch" or it will try to rebuild your project each time you print..
send the file to the printer
you need to find a way to send the file to the printer. several utilities to do that, but since i had a postscript capable printer all i had to do is to share it under windows, and copy the file to the share name. i automated this by adding another external tool, named "send ps file to printer"- main tab
location:c:\windows\system32\cmd.exe
working directory: leave empty
arguments:/c copy "${workspace_loc}\${project_name}\print.ps" \\your-machine-name-here\your-printer-share-name-here
(this will pick up the file we just created and send it to the printer) - build tab
clear "build before launch"
- main tab
voila, two clicks to run the tools one after the other and it prints clean. you can configure it further by adding enscript options to the argument line. here are a few useful ones:
- specify a slightly smaller font size (default is 10):
-f courier8
- truncate lines instead of wrapping: -c
- precede line with its line number: -c
Source: stackoverflow.com
Related Query
- Eclipse Project Printing
- 'Must Override a Superclass Method' Errors after importing a project into Eclipse
- Convert Existing Eclipse Project to Maven Project
- Eclipse "Invalid Project Description" when creating new project from existing source
- What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?
- Work on a remote project with Eclipse via SSH
- Search for all files in project containing the text 'querystring' in Eclipse
- Importing Maven project into Eclipse
- How to create a project from existing source in Eclipse and then find it?
- Build project into a JAR automatically in Eclipse
- How to format all Java files in an Eclipse project at one time?
- Eclipse JPA Project Change Event Handler (waiting)
- Moving project to another folder in Eclipse
- How to change an Eclipse default project into a Java project
- Can you organize imports for an entire project in eclipse with a keystroke?
- What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer?
- Function of Project > Clean in Eclipse
- Adding a library/JAR to an Eclipse Android project
- Importing a GitHub project into Eclipse
- Build Eclipse Java Project from Command Line
- Missing Maven dependencies in Eclipse project
- How to open existing project in Eclipse
- Android Studio Project Structure (v.s. Eclipse Project Structure)
- Importing a Maven project into Eclipse from Git
- Restore Eclipse subversion project connection
- Associating existing Eclipse project with existing SVN repository
- Find methods calls in Eclipse project
- Importing JSON into an Eclipse project
- How to make an existing directory into an eclipse project
- How to change JDK version for an Eclipse project
More Query from same tag
- Is it possible to make project name bold in the project explorer?
- Besides reinstalling Eclipse 32 bit is there a way around using a -d32 flag on a JVM from a mac with os x 10.6.8?
- Maven goal running from eclipse
- PhoneGap Back Key Function
- How do I change all font sizes in Eclipse?
- Maven doesn't build project with surefire plugin in pom
- Extending the Eclipse C Editor with all it's functionalities
- ldap authentication fails when running tomcat server in eclipse. Permission denied
- Using switch() with Scanner in Java error when running with Pico Compiler- Ipad
- In Eclipse, what plugin/class provides the style formatting on Java code?
- tomcat7 maxpermgen error, total memory doesn't match max memory
- Error taking address of temporary in Eclipse
- freertos tick factor 2 too fast on stm32f4xx
- Eclipse doesn't find my already running Android emulators
- New Java project structure Help needed
- How do I update my .jsp files without restarting the whole JBoss server?
- Is that possible to quit a Window in Eclipse in OS X full screen mode in shortcut?
- No Java console output in Eclipse; works with PyDev
- What happens if not copy every jar. file into eclipse to use Selenium?
- how to mention path in war file?
- clojure: how to use recur in if statement
- How to configure eclipse to access an endpoint over the SSL protocol?
- Android ApiDemos sample application errors
- How to use live templates in eclipse right?
- Maven, m2e, not building local dependencies
- Can you open the Option Menu from a button?
- How to configure maven to use latest or predefined Spring version / hibernate Version
- during maven build [mvn install] dependencies not getting downloaded from repository
- Tomcat allows me only to download servlets
- android eclipse webview back navigation