printing

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

i have a report page that opens a page with a datagrid and two buttons
one called print one called exit - when i print i dont want the buttons to
show
- i got round it by setting the buttons to visible = false - but they dont
come back after
printing - even if i set the buttons back to visible

my code

<code>
Button1.Visible = False
Button2.Visible = False
Dim clientscript As String
clientscript = "<script
language='javascript'>window.print();</script>"
RegisterStartupScript("openwindows", clientscript)
</code>

cheers

mark
 
You may use the stylesheet media....

Define in your css file a media print section, and redifine the button style
to be not visible.

The buttons will be visible in browser but not in the printed page... you
can hide all that you want
 
Back
Top