Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changing PrinterData's paper size.(this article describes how to change PrinterData's paper size.)
icon10.gif  Changing PrinterData's paper size. [message #1003348] Mon, 21 January 2013 02:25
a bc is currently offline a bcFriend
Messages: 6
Registered: February 2012
Junior Member
Hello.

Though there's no public API to change paper size in PrinterData class, It can be done by some hack.

So I made a hack and upload it.

This file also contains a workaround for Setting PrinterData.orientation is useless to PrintDialog.
By giving a valid PrinterData, PrintDialog will work normally.

Unfortunately, My code works only in Win32(Windows 32-bit. but I expect it will also work on Windows 64-bit...).

I hope some of you to write a hack for other platforms...
Previous Topic:Manually creating and firing events from inside another listener
Next Topic:rubber-band scrolling (aka elastic scrolling) problem in Java 7
Goto Forum:
  


Current Time: Wed May 01 21:22:43 GMT 2024

Powered by FUDForum. Page generated in 0.02532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top