I need to create a prn file using java. Did a basic googling to find what a prn file is all about and its contents. Now anybody out there can help with a sample code for generating one such file or API’s that can be used ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Print to file with Java you see, that it is just setting the destination of the print job.
There is the small problem, that what would have been sent to the printer is captured. So the same printer / printer driver has to be selected. Also the printer dialog might already propose in the UI “Print to file.”