Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Print Question - Urgent

Status
Not open for further replies.

nrastogi

Programmer
Jul 19, 2002
52
US
Hi there,

I have this form and have a check box on it with the label "hide price".

When I check this box it refreshes and hide certain values and change the text for this box to "show price".

So, when I try to hide price, it changes to show price.

When I Print this page, I just don't want to print the "Show Price" Label and the check box.

I also, don't want to go to another layer, says printable version.

Any ideas are appreciated.

Thanks,
NRastogi
 
Is this an acrobat form? Do you have editing permission? Ahhhhh, I see you have a machine that goes Bing!
 
put this code around the checkbox and label:

<span id=&quot;noPrint&quot;>

</span>

In your style sheet:

<style media=&quot;screen&quot;>
#noPrint {display:block;}
</style>
<style media=&quot;print&quot;>
#noPrint {display:none;}
</style> -- What did you expect? This is FREE advice. LOL[ponder]
 
Hi mwolf00,


<style media=&quot;screen&quot;>
#noPrint {display:block;}
</style>
<style media=&quot;print&quot;>
#noPrint {display:none;}
</style>

Do I have to use the code as is you mentioned above like #noPrint {display:block;} or #noPrint {display:none;}.

Thanks,
NRastogi
 
You need to define the style for the span that you create around the area you don't want to print. I called my ID &quot;noPrint&quot;, but you may call it whatever you want. The real important part is that you define a style for print media...
<style media=&quot;print&quot;>
#noPrint {display:none;}
</style>

This is where you are telling it that anything that has the id &quot;noPrint&quot; should not be printed on the printer.... I put the media=&quot;screen&quot; definition on there for clarity, you may not need it.
-- What did you expect? This is FREE advice. LOL[ponder]
 
Hi mwolf00,

Perfect. Yuo have solved my problem. Works great!

Thanks a lot for the help!

Have a great day!

NRastogi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top