Results 1 to 4 of 4

Thread: Printing

  1. #1
    Fion Guest

    Default Printing

    Is it possible to print without javascript?<BR>I have tried to put this code in but there is an error.<BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;%Option Explicit%&#062;<BR>&#060;script language=javascript&#062;<BR>function doPrint(){<BR>window.print(); &#060;---highlights this line<BR>}<BR>&#060;/script&#062;<BR>&#060;INPUT type="button" value="Print" name=btnPrint onClick=doPrint()&#062;<BR>Error msg:<BR>A Runtime error has occurred.<BR>Do you wish to Debug?<BR>Line: 3<BR>Error: Object doesn&#039t support this method or property<BR><BR>note: I am using vbScript for my client-side validation<BR><BR>I need to print out this form in this frame.<BR>Pls suggest a way to solve my present problem or a better way to do it. Thanks.<BR>

  2. #2
    Mark Parter Guest

    Default RE: Printing

    I usually put the code in the onClick event for the button like so:<BR><BR>onClick="javascript:window.print();"<BR ><BR>This seems to work OK for me, although I&#039m pretty sure it won&#039t work on the Mac.<BR><BR>

  3. #3
    Fion Guest

    Default Still the same error...

    Someone else, pls help.<BR><BR>Thanks

  4. #4
    Fion Guest

    Default More help needed for printing pls..

    I am still encounting the same error. Please direct me or give me more advice.<BR><BR>Thanks

Posting Permissions

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