aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes logging what is printed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "logging what is printed" Watch "logging what is printed" New topic
Author

logging what is printed

Denise L Smith
Greenhorn

Joined: Mar 04, 2006
Posts: 7
Is there a way using javascript(or jsf)to test to see if something has actually been printed??

I'm already using a different print stylesheet (which works awesome..so much better than making print versions of pages)

<LINK href="/theme/stylesheet.css" rel="stylesheet"
type="text/css" title="default" media="screen">

<LINK href="/theme/print.css" title="print" rel="stylesheet"
media="print">

I call the window.print() method and that works great too. The issue isn't how to get it to print but rather to confirm that the print actually happened.

window.print() only opens the print dialog-people can choose to cancel. My need is one of logging what was actually printed.

Any ideas would be helpful...

perhaps using the browser to confirm that the print button on the dialog box was clicked or testing the media type in the link for css.

my web application is JSF with javascript.

Thanks


The courage to learn anything...that's what I look for.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Nothing you can do with JavaScript to see if the page was actually printed.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging what is printed
 
Similar Threads
Providing site wide printable version for pages.
Print view for web-page
JSP with Stylesheet
Printing a open window using javascript
How to include css in new window using javascript