Right... I don't think I was clear.

I can use javascript to pop the print dialog **IF** I have an html
document. What I am opening in a new tab is a PDF document created
with CFDocument. The page loaded is formatted like:

<cfdocument format="pdf">
<html>
<body>
 ... content here ...
</body>
</html>
</cfdocument>

Putting a "window.print" function in the body tag doesn't carry over;
when reader is loaded by the browser to render the PDF that it is
receiving the PDF does not pop the print dialog.

Is there a way of creating the pdf in such a way that it attempts to
open its print dialog control when it first opens?

- Matthew

On Feb 24, 11:05 am, Alan Holden <[email protected]> wrote:
>   For an 'in your face' print dialog - the simple layout is like this:
>
> <html>
> <head></head>
> <body onload="window.print();">
>          [content]
> </body>
> </html>
>
> IF you're running JQuery and you've already got some other 'onload'
> stuff going on; you could add this in your existing SCRIPT block:
>
>          $(document).ready(function() {
>               window.print();
>           });
>
> Al Holden

-- 
tag/function ref: http://www.openbluedragon.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

 Get to Texas in Feb for OpenCFSummit http://www.opencfsummit.org/

Reply via email to