General information
Title:
Printing from DataGrid
I'm just finishing up my first ASP.NET app, which is a reporting module accessing VFP9 data through OLEDB, with a VFP COM component to handle some specialized processing.
It's a pretty simple app, which allows the user to select from a number of criteria and then presents the results in a datagrid. The other day as I was running some test data through it I thought I should try printing some things. Rude awakening. Somehow I had naively assumed that we were just generating html, so I could just hit the print button on the browser and everything would print. That's fine if you have less than a page of output, but if you have two or three screenfulls of data it chops off after the first page - even says "page 1 of 1" at the bottom.
Am I missing something basic? I was just beginning to see what the excitement was about with ASP.NET, being able to present a web-based grid with sortable columns, etc. with minimal code; but what kind of gyrations do I need to go through to print it?
One option I'm thinking of is to put a Print button on the report and link that to a routine that I'd put in my DLL that would generate a stream of html. How have others handled this?
Any suggestions appreciated.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only