使用页眉和页脚打印MVC视图(Html页面) [英] Print MVC View(Html Page) with header and footer
本文介绍了使用页眉和页脚打印MVC视图(Html页面)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是网络技术(asp.net)的新手,目前正在使用ASP.net MVC。
我有一个视图,它包含webgrid,表格等。
我想在所有页面上重复打印页眉和页脚的总页数。
目前正在使用Window.Print( )对于打印,我怎么能用javascript或jquery来实现这个?
解决方案
嘿,
请查看此链接。如何通过Jquery打印页面。这是非常好的脚本。 ;)
https://github.com/posabsolute/ jQuery-printPage-plugin [ ^ ] < br $> b $ b
http:// www。 jquery4u.com/plugins/10-jquery-print-page-options/ [ ^ ]
http://trevordavis.net/blog/unobtrusive-javascript-print-link-with-jquery [ ^ ]
- SDK
I am new to web technologies(asp.net),Currently working with ASP.net MVC.
I have a view its contains webgrid,tables,etc..
I want to print total page on paper with header and footer repeated in all pages.
Currently am using Window.Print() for printing,How can I achive this one using javascript or jquery?
解决方案
Hey,
Please check out this links. How to print page via Jquery. It is very good scripts. ;)
https://github.com/posabsolute/jQuery-printPage-plugin[^]
http://www.jquery4u.com/plugins/10-jquery-print-page-options/[^]
http://trevordavis.net/blog/unobtrusive-javascript-print-link-with-jquery[^]
--SDK
这篇关于使用页眉和页脚打印MVC视图(Html页面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文