如何仅在ASP.NET中打印gridview [英] How to print gridview only in ASP.NET

查看:82
本文介绍了如何仅在ASP.NET中打印gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dir my friends,

请问

如何使用vb.net代码在ASP.NET中打印GridView? 
我想添加按钮来打印我页面中包含gridview的区域。
非常感谢。

我尝试了什么:

我尝试过但没有成功,
所以请帮我解决这个问题。

解决方案

使用CSS媒体查询来控制打印页面时可见的内容,使用此选项隐藏不想打印的元素,如标题\ footer等



CSS Print Media Query |为您网站的可打印版本设置样式 [ ^

Dir my friends,
please how

How to Print GridView only in ASP.NET using vb.net code ?
i want to add button to print just the area that contain gridview in my page .
many thanks.

What I have tried:

I tried and did not succeed , 
so please help me about this.

解决方案

Use a CSS media queries to control what is visible when the page is printed, use this to hide the elements you don't want printed like header\footer etc

CSS Print Media Query | Styling the Printable Version of your Site[^]


这篇关于如何仅在ASP.NET中打印gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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