Printing a large datagrid (hopefully a simple problem)

C

Chris Gardner

I have a datagrid that prints a large number of records from a SQL
database. Because it is a large table, when printed the table
"bleeds" from one page to the next. Ideally, I would like to have 8
records to a page, then have the printer page break. Crystal Reports
is not an option.

What would be the best way to do this? I've experimented with paging
within the datagrid control, but in splitting the records over pages,
each page is considered separate to the browser.

I've also looked at page break CSS commands. Even if I broke the
datagrid into multiple tables, like:

Table part 1 of Datagrid

-Page break-

Table part 2 of Datagrid, etc.

that would be acceptable. I wouldn't mind seeing physical breaks on
the screen, if it meant the pages were being printed correctly.

Any ideas?
 

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,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top