How do I programmatically change printer settings with the WebBrowser control?

后端 未结 4 898
忘掉有多难
忘掉有多难 2020-11-29 06:59

I finally figured out how to print transformed XML without prompting the user or showing an IE window, but now I need to specify a number of copies and possibly other printe

4条回答
  •  心在旅途
    2020-11-29 07:23

    you need to change registry settings via code to change settings for internet explorer or the web browser control. check out the link below, it describes how to do so, also if there's more options you need to alter using the registry, then use regedit.exe to find what other keys internet explorer has.

    http://support.microsoft.com/kb/236777

    ps: you should note that any changes you make via your code to internet explorer's registry settings will persist on your system/user account.

提交回复
热议问题