How to set the Page setting's for a printer
1 posts in topic
Flat View  Flat View

Posted By:   Amith_Amith
Posted On:   Monday, October 7, 2002 09:08 PM

I don't know how to set the page settings for the printing layout. (I got a program that shows how to print from a text Area but the problem is I want get full out put of the text) please help me to set it.

Re: How to set the Page setting's for a printer

Posted By:   virender_singh  
Posted On:   Tuesday, October 29, 2002 09:01 AM

PrinterJob printerjob =
double d = pageFormat.getImageableHeight() + 250D;
double d1 = pageFormat.getWidth();
double d2 = pageFormat.getImageableX() / 2D;
double d3 = pageFormat.getImageableY() / 2D;
Paper paper = new Paper();
paper.setImageableArea(d2, d3, d1, d);
printerjob.setPrintable(this, pageFormat);

tru it , may be it is help ful , otherwise write me with code
thanks and best regards
virender singh
About | Sitemap | Contact