473,394 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to repeat header of HTML/Gridview across pages

Hello All,
I am displaying a report in a gridview and also in a separte html table.
When the user clicks a print button, I print the report (from gridview or
from html table). But I want to repeat the gridview's header and the html
table header row in all printed pages.

The print for grid and html table is done separately.

Can someone tell me how to make the header print in all pages?
Thanks
B.S.Girish
Nov 16 '07 #1
2 11052
Hi,
I would suggest you to use Report Viewer Control.You can do easily many
things easily with report viewer control including printing and repeating
headers on multiple pages without any effort.ReportViewer is a freely
redistributable control that enables embedding reports in applications
developed using the .NET Framework. Reports are designed with drag-and-drop
simplicity using Report Designer included in Visual Studio 2005 (Standard
editon and above.)
There is a WinForms and a WebForms version of the control.
Find more info about report viewer control in below links:
http://www.gotreportviewer.com/
http://msdn2.microsoft.com/en-us/lib...71(VS.80).aspx
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Girish" wrote:
Hello All,
I am displaying a report in a gridview and also in a separte html table.
When the user clicks a print button, I print the report (from gridview or
from html table). But I want to repeat the gridview's header and the html
table header row in all printed pages.

The print for grid and html table is done separately.

Can someone tell me how to make the header print in all pages?
Thanks
B.S.Girish

Nov 16 '07 #2
Hi Manish,
Thanks for your reply. Unfortunately, the web server hosting provider does
not allow installing a ReportViewer control. So I have to use standard
HTML/.NET2.0 code only for this.

Any suggestions?
Thanks again for your help,
Regards,
Girish

"Manish Bafna" wrote:
Hi,
I would suggest you to use Report Viewer Control.You can do easily many
things easily with report viewer control including printing and repeating
headers on multiple pages without any effort.ReportViewer is a freely
redistributable control that enables embedding reports in applications
developed using the .NET Framework. Reports are designed with drag-and-drop
simplicity using Report Designer included in Visual Studio 2005 (Standard
editon and above.)
There is a WinForms and a WebForms version of the control.
Find more info about report viewer control in below links:
http://www.gotreportviewer.com/
http://msdn2.microsoft.com/en-us/lib...71(VS.80).aspx
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.

"Girish" wrote:
Hello All,
I am displaying a report in a gridview and also in a separte html table.
When the user clicks a print button, I print the report (from gridview or
from html table). But I want to repeat the gridview's header and the html
table header row in all printed pages.

The print for grid and html table is done separately.

Can someone tell me how to make the header print in all pages?
Thanks
B.S.Girish
Nov 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew Cox | last post by:
After rebuilding our web server from NT 4.0 IIS 4.0 to Windows 2000 IIS 5.0, I'm constantly getting HTTP Headers posted to the top of the HTML source (generated from ASP pages of course). This...
3
by: Hans Merkl | last post by:
Hi, I was wondering if it's possible to bind the header text of a GridView column to a method of an object I have. At the moment I am setting the header texts in Page_Load but I was wondering if...
0
by: LemonHead | last post by:
I have a report with a header and 2 sub-reports in the detail section. When I select "Repeat Section" to "Yes" in the main report, the header repeats multiple times with nothing else on the page. ...
2
by: David | last post by:
I have a gridView that sometimes only shows the header and not the detail. Does anyone know how this can happen? Also, if I change the SelectCommand string using code do I need to use Databind()...
4
by: Tom | last post by:
Hi: I'm having a problem with a simple report in a simple database. Basically it's an issue tracking database - what is the issue, what is the proposed solution, who is responsible, a tracking...
0
by: satnamsarai | last post by:
Is it possible to repeat header of gridview on every printout page? If so, can you provide example codes? Thanks satnam
2
XedinUnknown
by: XedinUnknown | last post by:
Hi! I am new to this forum, but not new to web design and programming. Nevertheless, I have never tried to use PNG so extensively in my pages. here's the problem. First, I have found that the...
2
by: gnewsgroup | last post by:
I have a GridView, in which the header of one column changes depending on the selected value of a DropDownList outside of this GridView. I did this dynamic header through protected void...
3
by: ahling | last post by:
Hi again. I have questions to ask. 1. It's not necessary that I write codes to bind the database to the gridview? 2. Why is it that when I try to view the gridview in the browser it shows me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.