|
|
|
|
![]() ![]() |
Jul 31 2005, 10:46 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 24 Joined: 15-July 05 Member No.: 9,445 |
i have this program in java that need to creat reports!!!
i would like to now if u can conect to a printer and print that report using java??? thanks!!!! This post has been edited by Johnny: Jul 31 2005, 11:49 AM |
|
|
|
Aug 1 2005, 09:07 AM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 351 Joined: 19-October 04 From: India Member No.: 1,824 |
hi negativezero,
yeah, you can directly connect to a printer and print from a java program. For this purpose you need to use Java Printing API. The class that controls all is PrinterJob. Other classes like Book are to be used for rendering the page. There are a number of tutorials available on the web for the same. just google them. Two useful links are : 1. http://www.javaworld.com/javaworld/jw-10-2...1020-print.html 2. http://java.sun.com/docs/books/tutorial/2d...g/overview.html Just go throught the tutorial and try it out. Would not be very difficult once you get an idea of how the classes are used and what functionality is provided by the API. Cheers. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 10th October 2008 - 08:20 PM |