私は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);
値だけを読んで、そして前に自分自身をこれを調整するためにユーザに通知するかもしれないこれを処理する別の方法を:私はプログラム的にこれをやってみたかったので は、私はこのソリューションを選択しました印刷。私はこのようなレジストリを調整するのは良い方法ではないということに同意しなければならないので、私はどんな提案もしています。
ご意見ありがとうございました