Hi Joe and kuku,
Forget about the solution that I suggested before, I have a better solution. I found this site (
http://www.meadroid.com/scriptx/freedep.asp)
and they have this amazing ActiveX print controller. Go to the website and read on. But here is the snippet of code that I am using in my xslt file.
<style type="text/css" media="print,screen" >
.noprint { display: none }
</style>
<script language="javascript"><![CDATA[
function window.onload() {
factory.printing.header = "&bMeridian Cast Production Report&b"
factory.printing.footer = "&bGenerated: &d &t &bPages &p of &P"
factory.printing.portrait = true;
//THIS LINE IS ONLY USED WHEN A PRINT BUTTON IS ADDED ONTO THE REPORT PAGE
//idPrint.disabled = false; // enable UI button
}
function Print() {
factory.printing.Print(false); // no prompt
}
]]>
</script>
In your body tag, place this in.
<object id="factory" viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="ScriptX.cab#Version=6,2,433,14">
</object>
Note that in my code I removed the viewastext b/c it doesn't recognize it. Also, since you mentioned you are using Front Page then you must remove it the "viewastext". If you go to the website above, you will know what I mean. I actually just use the example that they provided on the website and implemented. Nice and clean.
Here is another option that another person (his name is "evagoras") suggested to me:
<html><head> <object id=factory style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=6,2,433,14"></object> <script language="javascript"> function printWindow() { // get page properties var page_header = factory.printing.header; var page_footer = factory.printing.footer; // change page properties factory.printing.header = "This is my custom header"; factory.printing.footer = "And this is my custom footer"; factory.printing.portrait = true; factory.printing.leftMargin = 1.0; factory.printing.topMargin = 1.0; factory.printing.rightMargin = 1.0; factory.printing.bottomMargin = 1.0; factory.printing.Print(true); // reset page properties factory.printing.header = page_header; factory.printing.footer = page_footer;} </script> </head><body>Ã Ã <button onclick="printWindow()">Print this page!</button></body></html>
and to understand more you can go to this site. I originally posted my question here.
To view the topic go to
http://209.200.89.134/forums/index.c...opic&topicID=6.
Good luck and let me know how it work out for you.
Grace :)