By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

ASP.NET registrykey

P: 1
i have an visual studio 2003 iam doing asp.net
i am trying to change the header and footer text in printpreview while runtime.
please help me...! here iam trying to print my name as footer


Dim mkey As RegistryKey = Registry.CurrentUser.OpenSubKey("software\Microsof t\Internet Explorer\pagesetup", True)

Dim strr As String = "Shafikhan"
mkey.SetValue("footer", strr)


i am getting error

LabelSystem.NullReferenceException: Object reference not set to an instance of an object. at WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.v b:line 41
Nov 7 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.