打印WebBrowser控件的内容时没有颜色? [英] No color when printing contents of WebBrowser control?

查看:98
本文介绍了打印WebBrowser控件的内容时没有颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试打印WebBrowser Control的内容。当我将内容保存为.xps文件时,我看不到表中的颜色。 webbrowser控件是否在打印时删除颜色格式?必须有一些解释。



I am trying to print content of WebBrowser Control. When I save the content as .xps file , I see no color in the table. Does webbrowser control remove color formatting when printing? There has to be some explanation.

WebBrowser1.DocumentText = "<table border="1"> <tr><td bgcolor="yellow">No Color visible here in xps file</td></tr> </table>"





我能够在webbrowser控件中看到颜色,但是当它保存为xps时会删除颜色吗?



I am able to see color in the webbrowser control but it removes color when saving it as xps?

推荐答案

这是旧帖子我知道,但仍然没有标记为已回答,这个问题继续在其他博客上继续重复...

因此在这里你去。





是的亲爱的..检查浏览器页面设置..每个浏览器都有一个..

在Firefox中它的主菜单=>文件=> ;页面设置。)

这将是sh你有一个对话框检查

打印背景(颜色&图片)

i会发布链接,但社区会认为我是垃圾邮件发送者...





问候。
This is an Old Post i Know but still its not marked as answered and this issue keep on repeating on other blogs and here..
therefore here you go.


Yes My dear .. check the browser Page Setup.. each browser have one..
in Firefox its at ( Main Menu =>File=>Page Setup.)
this will show you a dialog box check the
Print Background (Colors & images)
i would post a link but the community will consider me as a spammer if i do..


regards.


这篇关于打印WebBrowser控件的内容时没有颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆