problem with printing

Discussion in 'Java' started by mario, Feb 13, 2007.

  1. mario

    mario Guest

    I have problem with printing: I am not able to set margin less than 25
    mm. I'm trying to use something like that:

    Paper paper = new Paper();
    paper.setSize(595, 840);
    paper.setImageableArea(0,0,595, 840);
    pageFormat.setPaper(paper);
    pageFormat.setOrientation(PageFormat.PORTRAIT);

    and changing those numbers.

    But it does not work - even if it works on print preview, I get as a
    result printed page with those big margins.

    Is it any possibly way to set margins less than 25mm and get them on
    printed page?

    thanks in advance
    Mariusz
    mario, Feb 13, 2007
    #1
    1. Advertising

  2. On Feb 14, 9:15 am, mario <> wrote:
    > I have problem with printing:


    I have a problem with multi-posting.

    Please cross-post, rather than multi-post,
    in future.

    (X-post to c.l.j.p./g., w/ f-u to c.l.j.g. only)

    Andrew T.
    Andrew Thompson, Feb 13, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon B
    Replies:
    7
    Views:
    7,501
    =?Utf-8?B?SmFzb25DaG9p?=
    Jan 30, 2006
  2. JustSomeGuy
    Replies:
    13
    Views:
    508
    msalters
    Dec 9, 2004
  3. iffy agbim
    Replies:
    1
    Views:
    105
    Mark Andrews
    May 24, 2004
  4. iffy agbim
    Replies:
    0
    Views:
    102
    iffy agbim
    May 21, 2004
Loading...

Share This Page