Printing web user control only

  • Thread starter Thread starter peterotmar
  • Start date Start date
P

peterotmar

Hi,
I have a web user control on a page which has some data fields, few
tables etc.
I would like to put a button on the web user control which would allow
me to print only that.
Is there any simple solution I could use?
Thanks
 
The easiest approach would be to create a print css style sheet, so
everything but your control was efectively stripped at print time.

Alternatively, launch a new window at print and pass it the innerhtml or DIV
text extracted using html dom that that user control outputs and print that.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
 
Back
Top