Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q4052 Is it possible to print a form to a printer from either an applet or application?

irt.org | Knowledge Base | Java | Q4052 [ previous next ]

Q4052 Is it possible to print a form to a printer from either an applet or application?

Yes it is possible. The first step is to obtain an instance of new PrintJob class from the toolkit.

This class has method getPrintJob();

PrintJob getPrintJob(Frame frame,String jobname,Properties props);

You can refer the online documentation or any other good book.

As far as applets are concerned, only the applets from trusted sites can access the client side resources, you will have to check out the policytool, keytool available in JDK1.2. On the client side the policy is defined regarding what resources the applet is allowed to use.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.