Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this possible

Status
Not open for further replies.

VBMan

Programmer
Jul 1, 2000
49
US
I'm a new programmer and I've been studying Visual Basic for a while now. I was wondering is it possible to make a button on a web site that will print the current page. I have like notes posted for my friends and I want to let thenm print the current frame with the text by a button.

Thanks,
~Ben Jones
 
I just did this, but I used a short JavaScript function:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--

function printPage() {
if (window.print)
window.print()
}

//-->

</script>


- Then add your print button with an 'onclick' event to &quot;PrintPage()&quot;.

HTH...

sally
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top