Please help me, how can I print a larger frame than the impression area?

From: paulobsousa (paulobsousa_at_yahoo.com.br)
Date: 03/30/04


Date: 30 Mar 2004 04:14:24 -0800

Hello all,

I want to print a frame, but when I send for the printer the
impression cut in the margins.

    Characteristics of Frame:

        size width=671 x height=552
        font monospaced , 12
             
     my pagesize is width=612 x height=792

     How do I do to print this frame?

Thanks,

Paulo Batista

The routine that I use to print is this:
----------------------------------------------------------------------------

PrintJob printJob = frame.getToolkit().getPrintJob(frame, "JTerm : ",
null);
            
   if (printJob == null) return;
         
   Graphics page = printJob.getGraphics();
   Dimension size = frame.getSize();
   Dimension pagesize = printJob.getPageDimension();
  
   page.translate((pagesize.width - size.width)/2,
                  (pagesize.height - size.height)/2);
    
    page.setClip(0, 0, size.width, size.height);

    frame.print(page);

    page.dispose();
    printJob.end();
-----------------------------------------------------------------------------