File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Collating Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Collating" Watch "Collating" New topic
Author

Collating

Richard West
Ranch Hand

Joined: Jan 07, 2005
Posts: 127
Hi everyone,

I have a question about the java multi-platform print dialog.

My question is on collating the output of my print out using the java multi-platform print dialog. The thing is no matter even if i select the collate check box or not the output of the print out is always printed uncollated.

When i use the platform specific print dialog(windows in my case) the output can be printed collated or uncollated.

This is what i am doing to call the multi-platform dialog to print collated print-outs

The below is sun's simple printing program but when i test this programming(when i switch the aset variable between collating and uncollating) the problem also arises.

This is the compilable program



It seems strange to me that if i use the sytem specific print dialog i can print both collated and uncollated printouts but if i use the java multi-platform print dialog the print out is always printed uncollated even when i specify it to be printed collated

There are no exceptions thrown and the program compiles with no errors.

Am i calling java multi-platform print dialog and adding the
attributes correctly?

Is this a bug or am i missing something for both my questions?

This program was run on java 1.4.6 and 1.5.0_06 with both producing the same results

I really hope someone can help me with this problem

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Collating
 
Similar Threads
Printing on JTextArea
Landscape
Sides And Collate
printing in java 1.4
printing - can't have a '\n' new line. everything is concatenated :-(