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:IsSafeRunnable Error
Next Topic:Dynamic design
Goto Forum:
  


Current Time: Fri Oct 20 05:30:11 GMT 2017

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

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