The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: Print Dialogs

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Apr 3, 2008 10:53 AM by: philrace
timothyluke

Posts: 3
Print Dialogs
Posted: Mar 19, 2008 8:55 PM
 
  Click to reply to this thread Reply

Hi All,

I am currently working with printing an image over multiple pages implementing pageable and the cross platform print and page setup dialogs. The user environment is Java 1.5 with code compatability to 1.4.2. We are planning to go 1.6 with code compat to 1.5.

The user launches a "Print Preview" dialog which shows thumbnails of the pages that are to be printed and they have an option to manipulate the page size via the page setup dialog. This adjusts the thumbnails in the previewer and saves the pageformat and printattributeset. The problem I have is that when the user presses print and is given the Print dialog - allowing them to choose print queues - they are also presented with a page setup tab. Currently any changes presented here are ignored.

Is there any way to hide the page setup tab on the Print dialog?
Are there any improvements to the configurability/programmability of the print API's and pageable in 1.6?

leo_test

Posts: 103
Re: Print Dialogs
Posted: Apr 3, 2008 9:12 AM   in response to: timothyluke
 
  Click to reply to this thread Reply

I don't know for sure, but isn't there an option to display the whole dialog resp. forward all required information to skip this Dialog? so, why not make your own tab and then call the Printer with all predefined parameters and omitt the Dialog?

philrace

Posts: 57
Re: Print Dialogs
Posted: Apr 3, 2008 10:53 AM   in response to: timothyluke
 
  Click to reply to this thread Reply

You should take this question over to the Java 2D forum, where all printing
questions belong.

-phil.




 XML java.net RSS