[Ikvm-developers] Select Printer from Preview
Brought to you by:
jfrijters
|
From: Michael K. <mic...@km...> - 2015-07-10 15:19:50
|
I try to investigate deeper. Here my results
The JRPrinterAWT.class has in in line 194 following code
try
{
if
(
withPrintDialog
)
{
è
if
(
printJob
.printDialog())
ç
{
printJob
.print();
}
else
{
isOK
=
false
;
}
}
else
{
printJob
.print();
}
}
catch
(Exception
ex
)
{
throw
new
JRException(
"Error printing report."
,
ex
);
}
If I debug it in my application then was asked in the marked line for the
MethodUtil.java sources. This code are not available for me. I googled and
found that the MethodUtil.java is in sun.reflect.misc.MethodUtil
printDialog is
java
.
awt
.
print
.
PrinterJob
.printDialog
the method print is
java
.
awt
.
print
.
PrinterJob
.print
Hope that helps a little bit
Freundliche Grüße / Best regards
Michael Kolowicz
Systementwickler
|