Asked By Pragya Jaiswal
20-Mar-05 07:06 PM

I am a novice in asp.net and so please pardon my question if it
seems silly.
Presently I am working on an asp/c#.net project and for that I need
to print a web page, which has a record retrieved by querying from
the sql server database.Each record has about 50 fields. The data is
displayed in the form of a table with 2 columns and 50 rows. Each of
this rows have some text boxes and labels. Because there are so many
rows I want that the table comes in a good format on both pges
rather than breaking abruptly on one page.Basically, it is a "form"
sort of a page.
This is an example of the page I need to print:
http://www5.geog.okstate.edu/NewOli/querydata.aspx?objectid%20=15702
The problem is I dont know how to print the page without the buttons
being shown on the print page, without the bottom "home, logout" etc
and also there is a datagrid in the page which has visibility
as "false" , but still print with 2 empty pages. How can I eliminate
that?Also, I need page breaks at appropriate places on the page.
How can I print only the contents I need ignoring the other contents?
Also, I have another question, is there any way to dynamically
convert the web page to pdf?Or can anyone tell me which would be a quick and easy way of printing the web page, as I need it very urgently.
I would really appreciate any help on this.