Results 1 to 2 of 2
  1. #1
    shakti singh is offline Member
    Join Date
    Jul 2008
    Rep Power

    Default print webpage through applet

    how can I print a web page through applet in which its get initialized?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Is this a question of how to print?
    Or how to get permission for an applet to print?
    There are a couple of ways to give an applet permission:
    sign the jar file it is in
    change the .java.policy file to give the permission.

    Or how to get the URL for the page the applet is in?
    That may require you to ask a javascript method to return the address of the page
    so that the applet can read it. However that would only be the HTML code and it wouldn't be what the browser has.

    I wouldn't think it would be possible to print a page being shown in a browser without the user of the browser requesting it.
    Last edited by Norm; 07-22-2008 at 07:20 PM.

Similar Threads

  1. Secure Webpage for Logins
    By chandpuri in forum Advanced Java
    Replies: 3
    Last Post: 09-22-2009, 05:42 PM
  2. Print the text file and print preview them
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 PM
  3. post info to a webpage
    By kmp in forum Networking
    Replies: 1
    Last Post: 03-22-2008, 02:20 AM
  4. Replies: 3
    Last Post: 10-31-2007, 11:47 AM
  5. Replies: 0
    Last Post: 07-10-2007, 09:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts