Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

problem with printing

Thread view: 
mario - 13 Feb 2007 22:15 GMT
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
Andrew Thompson - 13 Feb 2007 22:35 GMT
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.