aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes window print problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window print problem" Watch "window print problem" New topic
Author

window print problem

Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi All,

A new window is displayed from a website(javascript:launchwin()) which contains some text and JPEG image below the text. Am trying to print this window. I use the window.print() option in the onClick prperty of the Print button, as shown in the code below.

The image is not printed in a few attempts, what could be the reason for the same??? Is there any other option for printing the contents of the window.


Thanks in advance,
Mahesh
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Only thing I can think is you are showing the image as a background. The image will not print if it is a background since it is a setting. If that is not the case then I am not sure.

Eric
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Here is code for the image part in the BODY tag of the HTML:




Can you please suggest now?

Thanks,
Mahesh
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31062
    
232

Mahesh,
Given that HTML, it should print. Go through the browser options. (I don't recall the name of the option in IE, but there is one for printing images.)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: window print problem