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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to print...

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hello,

I have a page that contains 2 datagrids, some buttons and a few graphics. I would like to make a button that would print out just the two datagrids to the clients printer. Any ideas on how this can be done?

Cheers,

Neil
 
For an IE solution use window.onbeforePrint to hide items you don't want printed - and onAfterPrint to reinsert them.

This means print selection from any source - context menu, File Menu etc is all catered for.

Other browsers you can only do it from a print button you insert - so File-->Print will bypass it.

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top