• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Print  RSS feed

 
Suman Mummaneni
Ranch Hand
Posts: 97
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am developing an a Print module of an app. I need to fix the margins for left, rigth, top and bottom. I am using the java.awt.print.Paper object to achieve this. I need to know if its possible to use the paper object with out setting up the size of the paper and only specifiy the margins so that If the user tries to print on a different A4 paper (ie US A4 ) he will not get an error.

 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you think of using this?
 
Suman Mummaneni
Ranch Hand
Posts: 97
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using this

The quest I put out was more general not specific to report generation.
 
JuanP barbancho
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you use the JXFS api, it is for financial printer but run well with normal printer.

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