424,066 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,066 IT Pros & Developers. It's quick & easy.

setFileName for print to file doesn't work

P: 1
I have a question about print to file with java.awt:

With Java 1.4, when I use setFileName("out.ps") in the JobAttributes class, as soon as the user clicks on Print to File, this file name shows.
However, with Java 1.5 or Java 1.6, this file name does not show, a different file name, "out.prn", shows. The reason why I want my file name to show is that I need the specific ".ps" extension.

I do need to use java.awt, I cannot use javax.swing, because for printing to the printer, I need to call my own paint.

Please help.

Thanks a lot!
May 31 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.