用webbrowser控件打印c# [英] printing with webbrowser control c#

查看:495
本文介绍了用webbrowser控件打印c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个winform应用程序和一个隐藏的webbrowser控件来打印一个网页,当我点击一个按钮 

所以我创建了控制然后我导航然后我打印 

so i create the control then i navigate then i print 

并且它适用于我只是它不打印网页中的任何silverlight对象?

and it works fine for me just it doesnt print any silverlight objects thats in the webpage ?

控件曝光它将打印silverlight对象

only if the control is exposed it will print the silverlight object

但我需要隐藏它 

but i need it to be hidden 

感谢

 

推荐答案

嗨isaacy,

您目前打印WebBrowser控件的方式是什么?

您能否提供一些有关该问题的详细信息和代码?

此外,如果您想打印隐藏的WebBrowser控件,为什么不直接打印html文件,请查看下面的文章。

http ://www.codeproject.com/Articles/12799/Print-HTML-in-C-with-or-without-the-web-browser-co

运行项目,您需要下载DHTML编辑控制应用程序可再发行组件包,请参阅

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8956 


最好的问候,


Hi isaacy,
What’s your current way to print the WebBrowser control?
Could you provide some details and code about the issue?
In addition, If you want to print a hidden WebBrowser control, why not print the html file directly,  please check the article below.
http://www.codeproject.com/Articles/12799/Print-HTML-in-C-with-or-without-the-web-browser-co
To run the project, you need to dowloand DHTML Editing Control for Applications Redistributable Package, see http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8956 
Best Regards,


这篇关于用webbrowser控件打印c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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