posted 11 years ago
I am not having much success getting what I need. I was successful in implementing PageRequestAttributeSet. The page setup pops up with landscape selected, although I don't know why I need that since it is now selected. However, that does not help since the print services apparently ignore that. I then tried using PrintService and created a combobox so the user can select the printer in my application. Again that all works and the correct printer is selected when the print dialog comes up. Unfortunately the orientation is still the default rather than landscape. I now have 2 issues to over come. The first is to eliminate the page setup popup which is not needed even if it worked. The second is to set landscape orientation. FWIW, here is the new print class:
This is how I get the selected printer service: