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

Print option from every asp page

Status
Not open for further replies.

krish1980

Programmer
Feb 27, 2002
20
US
Friends,
i would like to provide print option to the user from the html page. may i know the procedure in providing the print option with asp. sample code would be very helpful.

thanks,.
s.krish
krish1980@rediffmail.com Krishnamoorthy
krish1980@rediffmail.com
 
Printing is a client machine process - just call document.print();

The onbeforeprint handler is useful for reconfiguring before printing, or you can link a separate printable version using the link tag.

<LINK REL=PRINT TYPE=text/html HREF=&quot;path/file.htm&quot; />

<bb/>
 
thanks gign,

very nice of u. just what i wanted to know.
thanks again.
s.krish Krishnamoorthy
krish1980@rediffmail.com
 
sorry i'm not able to work it out correctly. any small html/asp page with appropriate code would be better. i'm a newbie to this.
by the way is document.print() u mentioned in javascript. i'm getting errors for the same.

thanks.
s.krish Krishnamoorthy
krish1980@rediffmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top