Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Print from applet

Reply
Thread Tools

Print from applet

 
 
Martin
Guest
Posts: n/a
 
      01-10-2006
Is it possible to print from an applet? I've searched the net and
several places it is mentioned that an applet needs to be signed in
order to be able to print from it. Is that correct?

In my case, I want to print the contents of a Dialog (AWT). If it's
possible to print from an applet - can anyone help on the way?

I've tried the following without lucj:

Added import java.awt.print.printable
Made the class (the dialog) implement Printable
Added the function int print(Graphics graphics, PageFormat pageFormat,
int pageIndex)

The applet compiles but when running it I get a
ClassNotFoundException.

/ Martin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
print a vs print '%s' % a vs print '%f' a David Cournapeau Python 0 12-30-2008 03:19 AM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
Unlarging the print to print using PDF file to print Bun Mui Computer Support 3 09-13-2004 03:15 AM
Re: play wave files using java.applet.Applet webster Java 0 07-20-2003 01:51 PM
applet vs. canvas in applet Rob Love Java 1 07-07-2003 10:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57