| | |
Print different format files using java API
![]() |
•
•
Join Date: Jan 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi All,
I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
I checked with from java API and able to print simple text. I need to approach same for files of different formats.
Any other API's ? How do i approach?
Any help will be appreciated.
Thanks,
Praveen
I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
I checked with
Java Syntax (Toggle Plain Text)
printerJob.print();
Any other API's ? How do i approach?
Any help will be appreciated.
Thanks,
Praveen
Use Java Print Service API. Please refer http://poi.apache.org/ and http://www.theserverside.com/discuss...hread_id=42180
Last edited by adatapost; Jun 9th, 2009 at 7:46 am.
Failure is not fatal, but failure to change might be. - John Wooden
•
•
Join Date: Apr 2008
Posts: 972
Reputation:
Solved Threads: 146
If you can render the file into a Java window, then you can also print it. see http://java.sun.com/docs/books/tutorial/2d/printing/
So this come down to asking "what file types can you display on Java?" PDFs can be displayed using Adobe's own free Java pdfviewer. For MS word docs you'll need to search for the code - I'm sure it exists.
So this come down to asking "what file types can you display on Java?" PDFs can be displayed using Adobe's own free Java pdfviewer. For MS word docs you'll need to search for the code - I'm sure it exists.
![]() |
Similar Threads
- Print PDF files using VB 2005 (VB.NET)
- Do we have a tool which converts python files to java (Python)
- SMS Java API (Java)
- how to open indesign, pdf, framemaker files using java script (JavaScript / DHTML / AJAX)
- Please help me to Print Layer content from Java Script (JavaScript / DHTML / AJAX)
- reading external files into java (Java)
- How can we print an MS Word document from Java (Java)
Other Threads in the Java Forum
- Previous Thread: check out my code
- Next Thread: How do I create a Java code for this number sequence?
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle plazmic print problem program programming project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree unlimited utility webservices windows






