# Printbutton in flash to print htmlpage

**URL:** <https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908>\
**Category:** Uncategorized\
**Created:** [September 25, 2002, 8:40pm UTC](https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908 "2002-09-25T20:40:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![feromoon](https://avatars.discourse-cdn.com/v4/letter/f/977dab/32.png) [@feromoon](https://forum.kirupa.com/u/feromoon)\
**Post date:** [September 25, 2002, 8:40pm UTC](https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908/1 "2002-09-25T20:40:56Z")

</div>

I do not know how to make a button t print a specific htmlpage.  
I guess it is a script. Do not know the script.

Anyone?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2002, 2:54pm UTC](https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908/2 "2002-09-29T14:54:23Z")

</div>

Jeje, does it have to be in flash?  
Otherwise:

\< script type=“text/javascript” \>  
function docprint() {  
if (navigator.appName == “Netscape”) {  
window.print();  
} else {  
document.body.insertAdjacentHTML(“beforeEnd”, “\< object id=‘PrHandle’ width=0 height=0 classid=‘CLSID:8856F961-340A-11D0-A96B-00C04FD705A2’ \>\< /object \>”);  
PrHandle.ExecWB(6,2);  
}  
}  
\< /script \>

The above is to be placed in HEAD. Below is the form:

\< form \>  
\< input type=“button” value=“Skriv ut” onClick=“docprint();” \>  
\< /form \>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2002, 7:15pm UTC](https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908/3 "2002-10-02T19:15:34Z")

</div>

Yes, but I want to put the code in the flashbutton.  
Can I put in the url-thing at the action set?

Please the code to put a flash button to print iut a HTMLpage?

Because I already have the code in HTML.

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 2, 2002, 8:14pm UTC](https://forum.kirupa.com/t/printbutton-in-flash-to-print-htmlpage/5908/4 "2002-10-02T20:14:53Z")

</div>

as in “a flash button which prints the swf file” or as in “a flash button which prints a defined html document” or “a flash button which prints the document the file is loaded in”?
