Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java print issue

Status
Not open for further replies.

simpleerrors

Programmer
Aug 22, 2006
3
CA
Hi Guys
I am working with a Java application (JSP, TOMCAT 5.5).
I am using Oracle8i database.
I need some suggestions on how to do something.

I need to create a data file and then I want to print that data on the piece of paper which I will put itno the printer. How do I do this??. I have a form with some information on it that needs to be filled. I need this application to fill that form when the form is put into the printer. I do have the data stored in the database tables. I can access the data but how do i tell the application to print that data on specific places on the form when the form is put into the printer.

I hope you understand what I mean.

Thanks
 
I don't think there's anything special in Java to facilitate this. I would do it as with any other language: liberal use of tabs (\t) and linefeeds (\n).

_________________
Bob Rashkin
 
Ya, I dont want to print the data on the webpage. I want to print it on a paper that is inserted into the printer. I want to position the data properly so that it is printed in proper slots on the form that I insert into the printer.
I will have to use linefeeds and tabs to position the data. Once data is position, I might have to display it on a completely blank white webpage and then when I put a form into the printer and print the webpage, the data will be printed in proper slots on the form.

Hope this make sense... I was just wondering if anyone have done this or anyone have any better ideas....


 
Actually, it might be simpler to print the form, itself, with the data filled in, on a blank paper.

_________________
Bob Rashkin
 
ya, I thought of that too but the form itself is very very congested and there is too much information on it.
 
I think the easiest way to do this, is to create a simple PDf using an API such as iText, allowing you to easily specify page layout and then convert this to postscript using a tool such as xpdf, or ghostscript, and then fire that at the printer.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top