printing

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
 
C

Carlos Campos

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
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top