Hi,
I am using the following code on a page that users will print off. It stops the headers and footers that normally appear from appearing when a web apge is printed. E.g. the page URL that appears at the bottom of the page.
<script type="text/vbscript">
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""
</script>
The problem is now that when the page is run, this error appears:
an activeX control on this page might be unsafe to interact with other parts of the page
Is there something I can do to stop this or fix this?
Thanks.
I am using the following code on a page that users will print off. It stops the headers and footers that normally appear from appearing when a web apge is printed. E.g. the page URL that appears at the bottom of the page.
<script type="text/vbscript">
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""
</script>
The problem is now that when the page is run, this error appears:
an activeX control on this page might be unsafe to interact with other parts of the page
Is there something I can do to stop this or fix this?
Thanks.