winforms에서 webbrowser 컨트롤을 사용하고 있으며 CSS로 적용한 배경 이미지가 인쇄물에 포함되어 있지 않음을 알았습니다.WebBrowser 컨트롤로 CSS 적용 배경 이미지를 인쇄하는 방법
웹 브라우저에서 표시된 문서의 배경도 인쇄 할 수있는 방법이 있습니까?
편집 :
using Microsoft.Win32;
...
RegistryKey regKey = Registry.CurrentUser
.OpenSubKey("Software")
.OpenSubKey("Microsoft")
.OpenSubKey("Internet Explorer")
.OpenSubKey("Main");
//Get the current setting so that we can revert it after printjob
var defaultValue = regKey.GetValue("Print_Background");
regKey.SetValue("Print_Background", "yes");
//Do the printing
//Revert the registry key to the original value
regKey.SetValue("Print_Background", defaultValue);
단지 값을 읽고, 전에 자신이 조정하는 사용자에게 통지 할 수 있습니다이 처리하는 또 다른 방법 : 나는 프로그래밍 방식으로이 일을 원하기 때문에 , 나는이 솔루션을 선택했다 인쇄. 이 레지스트리와의 조정은 좋은 습관이 아니라는 것에 동의해야합니다. 따라서 제안 사항은 공개되어 있습니다. 기본적으로 모든 피드백