Printing in ASP

Results 1 to 2 of 2

Thread: Printing in ASP

  1. #1
    Join Date
    Dec 1969
    Posts
    42

    Default Printing in ASP

    Hi,<BR>I was wondering if anyone knows how to capture an entire screen in ASP, and then make a print button. Meaning to print the screen nicely in Netscape and IE.<BR><BR>Thank You,<BR>Marco<BR>p.s. I would greatly appreciate if you would e-mail this to <BR>marco.janeczek@hrdc-drhc.gc.ca<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    151

    Default RE: Printing in ASP

    You can use window.print, don&#039t know about how nice but it will print the whole window.<BR>You can write a vbscript function as:<BR>&#060;script language="vbscript"&#062;<BR>&#060;!--<BR> sub print_onclick()<BR> window.print<BR> end sub<BR>--&#062;<BR>&#060;/script&#062;<BR>then make a button inside a table, as:<BR>&#060;table&#062;<BR>&#060;input type="button" name="print" action="onclick()" value="Print the Form"&#062;<BR>&#060;/table&#062;<BR>--------------------------------------<BR>hope this helps.<BR>good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •