//修改注册表
public void IESetupPrint_Background()
{
RegistryKey key = Registry.CurrentUser;
RegistryKey software = key.OpenSubKey("Software\\Microsoft\\Internet Explorer\\Main", true); //该项必须已存在
software.SetValue("Print_Background", "yes");
software.Close();
}
public void IESetupPageSetup()
{
RegistryKey key = Registry.CurrentUser;
RegistryKey software = key.OpenSubKey("Software\\Microsoft\\Internet Explorer\\PageSetup", true); //该项必须已存在
software.SetValue("header", "");
software.SetValue("footer", "");
software.Close();
}