Someone Has To Have An Answer ???

J

Jay

I have posted this same question several times, however, no one seems to
have any idea how to accomplish this task.

I have a fairly long datagrid that spans several pages when printed.
Problem is, when printed, the last row of each page tends to get cut off.
Ideally what I would like is to print the datagrid on multiple pages while
persisting the datagrid header on each page and without cutting off the end
row(s).

I do not have VStudio, Reporting Services or Crystal Reports. Any ideas how
this can be accomplished? Links, samples? This seems to be a problem that
absolutely no one has a solution to (or that can point me to anyway). I'd
certainly appreciate any help at all.

Thanks a lot.
 
J

Jay

Thank you very much. I just can't seem to use these tags, etc. within a
datagrid. Would you please happen to have an example of this functionality
within an asp.net datagrid?

Thanks a lot.
 
J

Jay

For that matter. I can always adjust my application top use a repeater or
datalist, etc. as long as I can prevent the last row from being cut and
have the header on every printed page.
 
F

Frankie

Well, if you're willing to go to alternative controls or even 2.0, then
perhaps you'd consider a full-blown report writer. That works along with
your grid. I can't tell you if it will meet all of your needs, but it's
certainly another way to print info from your Web app.
http://www.datadynamics.com/ has ActiveReports. You might want to check out
it's Professional Edition features. Exports to PDF or HTML.

-HTH
 
J

Jay

Thanks. I should also mention that the number of rows and the height of
those rows varies...
 
H

Hal

You are going to need to make a printable version of your page. Use the
tag links send by the guy at MSFT and CSS to provide formatting.

The datagrid is an atomic control, and has no concept of "pages" beyond
it's own. Despite your best efforts I think it would be neigh
impossible to get it to behave in the fashion that you would like.

Use multiple datagrids, with a limit of records on each page. On each
"page" bind a datagrid with the proper number of rows, add a br tag
with a page break style added to it at the end. Your HTML page will
look like one long page, but print preview will tell a different story.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top