是否可以使用C#代码调用浏览器打印事件? [英] Is it possible to call browser print event using C# code ?
本文介绍了是否可以使用C#代码调用浏览器打印事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要打印一些div但是在一个div中我所显示的图像没有被window.print()捕获,
在浏览器的打印功能中,它工作正常。
所以我想调用浏览器的打印功能。
是否可以通过代码使用c#,mvc,javascript,jquery?
< b>我尝试了什么:
我尝试了window.print()函数,但无法捕获图像。
解决方案
这已经被多次询问了,所以有一个版本的Firefox支持这个尝试
或
在SO上查看这篇文章以获得更多指导。
打印 - 直接从浏览器打印而不打印弹出窗口 - Stack Overflow [ ^ ]
I want to print some div but in one div the image i have shown is not captured by window.print() ,
In browser's print function it works fine.
So i want to call browser's print function.
Is it possible by code using c#, mvc, javascript, jquery ?
What I have tried:
I tried the window.print() function but image can not be captured.
解决方案
This has been asked before many times so there is a version of Firefox which supports this try that
or
look into this post on SO for more guidance.
printing - Print directly from browser without print popup window - Stack Overflow[^]
这篇关于是否可以使用C#代码调用浏览器打印事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文