Ash Singh wrote:
Thanks, unfortunately its going to be javascript (yak):

<SCRIPT Language="Javascript">

/*
This script is written by Eric ([EMAIL PROTECTED])
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/

function printit(){ if (window.print) {
window.print() ; } else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box
WebBrowser1.outerHTML = ""; }
}
</script>

Okay, so you already have the code to print. You just need it to print and then submit. A little Javascript can take care of this:


<html>
<script>
function submit_form() {
  printit();
  document.form1.submit();
}
</script>
<!-- Your printing script goes here>
<body>
<form name=form1>
...
<input type=button value=Submit onClick='submit_form();'>
</form>
</body>
</html>

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to