hi..
i have added following code in my application and it works for me.
But it will works with internet explorer only
<script type="text/vbscript" language="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", ""
Sub ResetHeader()
Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", "&w&bPage &p of &P"
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", "&u&b&d"
End Sub
</script>
then Call ResetHeader Function in your code