• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Double-Sided

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am currently trying to print a swing component a JTable to be exact but the thing is that i want my user to be able to print even, odd or all the pages. The thing is i am using the swing print dialog and not the windows native one.

When i write i use the printer job the java printing system will call the page indexes as follows:



As you can see from above all the page numbers are called sequentially until NO_SUCH_PAGE is returned.

Well what i am trying to say is that is possible to make the java printing system only call odd page indexes
something like this



I know that it is also possible to print double side page by adding attributes to the PrintRequestAttributeSet class by using the below line



This is not a very good option as it requires an expensive printer for this and not many users have this type of expensive printer.

I hope i haven't confused you guys and maybe someone can explain or guide me to a way to printing even and odd pages.

Please note that the JTable is three pages long

Thank You

Yours Sincerely

Richard West
 
reply
    Bookmark Topic Watch Topic
  • New Topic