Select Printer from Preview

"Michael Kolowicz" <[email protected]> Fri, 10 Jul 2015 17:19:40 +0200
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>












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(

&quot;Error printing report.&quot;

, 

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

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers