Author: Lingeswararaj.S | Posted on: 10/12/2009 4:10:33 AM | Views : 282

Hello guys,
When tacking a print on a paper the Print header/footer is dont want print so I can Use this code below one.


Its worked in local machine but its not worked in Server machine.
I host my application in server and now its not working , its showing an error message "object reference not set to be an instance of objects"



Dim pageKey As Microsoft.Win32.RegistryKey = CurrentUser.OpenSubKey("software\microsoft\internet explorer\pagesetup", True)
        
        Dim newFooter As String = ""
        'Dim curFooter As Object = pageKey.GetValue("footer")
        'pageKey.SetValue("footerTemp", curFooter)
        pageKey.SetValue("footer", newFooter)
 &n ...

Go to the complete details ...