Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)



Hi all,
I already reported this problem to you, I couldn't print in landscape on MAC
OS/X .2 (it kept printing in portrait),
now on MAC OS/X .3 , it doesn't print at all, i got this error message
instead of my component being printed.

On the 10.2 mac i use the jre 1.31 and the 1.4.1 on the 10.3 mac.
And everything works fine on win plateforms.
"
ERROR: undefined
OFFENDING COMMAND : J,~

STACK:

"

Below is my code to print my component :
Any idea are welcome...
Thanks in advance
Luc


void bPrint_actionPerformed(ActionEvent e)
{

PrinterJob printJob = PrinterJob.getPrinterJob();

printJob.setPrintable(this);

if (printJob.printDialog()) {
try {
printJob.print();
} catch (Exception ex) {
ex.printStackTrace();
}
}
}

public int print(Graphics g, PageFormat pf, int pi)
throws PrinterException {
if (pi >= 1) {
return Printable.NO_SUCH_PAGE;
}
pf.setOrientation(pf.REVERSE_LANDSCAPE);

g.translate(60,60);
g.setClip(0,0,700,550);

this.print(g);
return Printable.PAGE_EXISTS;
}
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.