Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printer paper size lookup  RSS feed

Steve Sinai
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a PrintService from something like PrintServiceLookup.lookupDefaultPrintService(), does anyone know how I can query for the supported paper sizes for that print service/printer? For example, "Legal", "Letter", "A4", "B4", etc. I'm doing a print preview dialog, and I'd like to be able to preview documents based on the paper size the user wants to print to.

I actually implemented something like this about a year ago, but I don't have the code anymore, and for some reason (probably programmer's rotting-brain syndrome) I can't remember how to do it.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!