File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to get text file printed in Java program or From JSP page?
Joined: Sep 14, 2011
Mar 05, 2012 02:06:05
I want to perform billing functionality.
In which i have displayed bill on screen but now further i want to store that same in the database and that will be achieved.
Next i want to write it in TXT file and want to get that file printed.
I will manage to write the same data into that file but How to PRINT that file from my Printer in LAN through
Page or any
Any help regarding this will be appriciated...!
Joined: Sep 21, 2011
Mar 05, 2012 02:12:41
Printing -like any file I/O or DB access- should never be done in a JSP, but from a
or backing bean. This should help:
Joined: Oct 21, 2008
Mar 05, 2012 05:49:50
do you want the user to print it on their printer, or it to appear on the servers printer?
I agree. Here's the link:
subject: How to get text file printed in Java program or From JSP page?
tansfer file from one pc to another
writing back to jar file ??
add timestamp with .txt file & write some information to the .txt file
Accessing contents of a jar file
Java program that changes a file's extension
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014