Problems with PrinterData [message #628180] |
Thu, 23 September 2010 06:23  |
Eclipse User |
|
|
|
What am I doing wrong?
I have a 3 tray printer(MyPrinter) with specific types of paper in each of them
I want to print from tray 3 always. and In my printer properties I have selected tray 3 as the paper source.
It works fine, if I use following code: and Select the printer @ run time.
.
.
.
PrinterData data = new PrintDialog(shell).open();
if(data == null)return;
Printer printer = new Printer(data);
.
.
.
It prints from tray 2 if I use the following code
String driver = "winspool";
String name = "MyPrinter";
PrinterData = new PrinterData(driver, name);
if(data == null)return;
Printer printer = new Printer(data);
This is happening since SWT 3.5 release.
Thanks,
Iyengar.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05906 seconds