posted 7 years ago
Ok I have been playing around with several codes over the past couple of days and I have found nothing that will actually print a text file to the printer. First I create a regular text file that I call Print.txt. In the same method I have tried several codes to get the text file to print to a printer, but none has worked so far. I have tried code from Oracle and other Java websites but the file never seems to print. If anybody has any code suggestions it would be really helpful. I need this tonight if thats possible. Thanks.
posted 6 years ago
You need to clarify if you are trying to print on the server side, a printer located where your server is, or on the client side, printer located on the clients machine. You can print on the server side using LPR and a printer on the server's local network. I had a project where users would submit a form online and it would print as a filled out PDF in a processing area. There are several java implementations of the LPR protocol, google "java lpr".