在asp.net中打印带有许多列标题的gridview [英] Print gridview with many column headers in asp.net
问题描述
大家好..
我有很多网格视图,每个网格视图都有很多列标题。
我的网格视图示例之一是:
Hello all..
I have many gridviews with many column headers at each gridview.
Example one of my gridviews is:
MC | OP | QC | DATE | 1/7 | 2/7 | 3/7 | 4/7 | 5/7 | 6/7 | .............. | 31/7 |
----------------------------------------------------------------------------------
102| A | B | | 0 | 0 | 0 | 0 | 0 | 3 | .............. | 5 |
我想将gridview中的所有数据打印成1 A3纸(横向)。在aspx中,我将gridview放在带有滚动条的面板中。
删除面板和滚动条后,gridview宽度增加,打印后,并不会打印所有数据。它仅限制到A3横向尺寸并切割打印区域外的剩余内容。
我的想法是如果gridview列在面板打印区。
怎么做?
I want to print all data in the gridview into 1 A3 paper (Landscape). In aspx, I put the gridview inside a panel with scrollbars.
After removing the panel and scrollbars, the gridview width increases and after printing, not all the data will be printed. It only limits until A3 landscape size and cut the remaining content which is outside printing area.
My idea is to insert break if the gridview column is outside of the panel printing area.
How to do so?
MC | OP | QC | DATE | 1/7 | 2/7 | 3/7 | 4/7 | 5/7 | 6/7 | 7/7 | 8/7 | 9/7 | 10/7|
-----------------------------------------------------------------------------------
102| A | B | | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 2 | 1 |
11/7 | 12/7 | 13/7 | 14/7| 15/7 | 16/7 | 17/7 | 18/7 | 19/7 | 20/7 | 21/7 | 22/7 |
-----------------------------------------------------------------------------------
1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 |
谢谢
Thanks
推荐答案
试试这些
http://www.aspsnippets.com/articles/print-functionality-in-asp.net-gridview-control.aspx
try these
http://www.aspsnippets.com/articles/print-functionality-in-asp.net-gridview-control.aspx
这篇关于在asp.net中打印带有许多列标题的gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!