473,399 Members | 2,478 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,399 software developers and data experts.

Datagrid Spans Multiple Pages - Need to Print

Jay
In an ASP.NET page I have a fairly lengthy datagrid that I need to print.
Problem is that when I print sometimes the last row on that page gets cut
half way through. Is there a way to print a datagrid that spans multiple
pages? Ideally I'd also like to maintain the header on each page, but would
settle with just the content not getting cut. The datagrid can range in
size (dynamic). Any examples of doing this?

Thanks a lot.
Nov 19 '05 #1
5 3474
Hi Jay,

Data Reports, such as Crystal Reports, provide these kinds of features.

HTH

"Jay" <msnews.microsoft.com> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
In an ASP.NET page I have a fairly lengthy datagrid that I need to print.
Problem is that when I print sometimes the last row on that page gets cut
half way through. Is there a way to print a datagrid that spans multiple
pages? Ideally I'd also like to maintain the header on each page, but
would settle with just the content not getting cut. The datagrid can
range in size (dynamic). Any examples of doing this?

Thanks a lot.

Nov 19 '05 #2
Jay
Thanks. Any idea where I might find an example using Crystal Repots?
"Elton Wang" <el********@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
Hi Jay,

Data Reports, such as Crystal Reports, provide these kinds of features.

HTH

"Jay" <msnews.microsoft.com> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
In an ASP.NET page I have a fairly lengthy datagrid that I need to print.
Problem is that when I print sometimes the last row on that page gets cut
half way through. Is there a way to print a datagrid that spans multiple
pages? Ideally I'd also like to maintain the header on each page, but
would settle with just the content not getting cut. The datagrid can
range in size (dynamic). Any examples of doing this?

Thanks a lot.


Nov 19 '05 #3
Another option would be to export to MS EXCEL format

Nov 19 '05 #4
Take look at following URL:
http://www.c-sharpcorner.com/Code/20...troduction.asp

You can also google the topic.

HTH
"Jay" <msnews.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Thanks. Any idea where I might find an example using Crystal Repots?
"Elton Wang" <el********@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
Hi Jay,

Data Reports, such as Crystal Reports, provide these kinds of features.

HTH

"Jay" <msnews.microsoft.com> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
In an ASP.NET page I have a fairly lengthy datagrid that I need to print. Problem is that when I print sometimes the last row on that page gets cut half way through. Is there a way to print a datagrid that spans multiple pages? Ideally I'd also like to maintain the header on each page, but
would settle with just the content not getting cut. The datagrid can
range in size (dynamic). Any examples of doing this?

Thanks a lot.



Nov 19 '05 #5
Jay,
Sorry I didn't see your post sooner. I have written a PrintGrid component.
It will produce a Crystal report of any web datagrid along with headings.
You simply pass the grid to my printgrid function and it produces a .PDF on
the client where they can do whatever they want with it. I have an example
of it on my website.

Gary Blakely
DeanBlakely & Assoc.
www.deanblakely.com

"Jay" <msnews.microsoft.com> wrote in message
news:Od**************@TK2MSFTNGP12.phx.gbl...
In an ASP.NET page I have a fairly lengthy datagrid that I need to print.
Problem is that when I print sometimes the last row on that page gets cut
half way through. Is there a way to print a datagrid that spans multiple
pages? Ideally I'd also like to maintain the header on each page, but
would settle with just the content not getting cut. The datagrid can
range in size (dynamic). Any examples of doing this?

Thanks a lot.

Nov 19 '05 #6

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

Similar topics

11
by: Max M | last post by:
I am writing a "find-free-time" function for a calendar. There are a lot of time spans with start end times, some overlapping, some not. To find the free time spans, I first need to convert the...
7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
16
by: J. J. Cale | last post by:
Hi all I would like to see all the spans below inline one next to the other. I do not want to use absolute but relative or no positioning. This will eventually be a receipt that will be printed...
2
by: John Hoge | last post by:
I have a datagrid displaying a number of narrow columns and one very wide one. It would make sense from a layout perspective to have two rows per dataitem, and to put the long descriptive field...
2
by: Niclas Lindblom | last post by:
Hi, I have a datagrid with linkbuttons. I would like to catch the click event when a link button has been clicked and use the string from the text value of the link button in a clientside Java...
1
by: strout | last post by:
I know it's dumb ... sometimes frustrating I want the text and a dropdownlist align with both side of a table cell, i.e. text align left and dropdownlist align right. I cannot add more cells to...
4
by: Jay | last post by:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any...
2
by: ray well | last post by:
hi, i need to print multiple pages on a printer. this is what i'm using now Sub Print() Dim PrintDoc As New PrintDocument AddHandler PrintDoc.PrintPage, AddressOf Me.PrintText Do While...
1
by: hudpuck | last post by:
I have a datagrid that I set to AllowPaging="true". If AutoGenerateColumns is set to false, the page numbers are displayed in a footer row that spans the entire datagrid. If AutoGenerateColumns is...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.