//设置ie打印的边距
RegistryKey regKey = Registry.CurrentUser;
string SubKeyPath = @"Software\Microsoft\Internet Explorer";
RegistryKey optionKey = regKey.OpenSubKey(SubKeyPath, true).CreateSubKey("PageSetup");
optionKey.SetValue("header", "");
optionKey.SetValue("footer", "");
optionKey.SetValue("margin_top", "0.0");//
optionKey.SetValue("margin_bottom", "0.0");//
optionKey.SetValue("margin_left", "0.10748");//4/
optionKey.SetValue("margin_right", "0.10748");//4
//optionKey.SetValue("margin_left", "0");//4/
//optionKey.SetValue("margin_right", "0");//4
optionKey.SetValue("Print_Background", "no"); //yes no
optionKey.SetValue("Shrink_To_Fit", "yes"); //yes no 启用缩小字体填充