Announcement

Collapse
No announcement yet.

printing receipts?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    printing receipts?

    ive finished developing my shop in actinic.

    some people access the shop through a cd-rom interface, which doesnt have the normal browser buttons thus doesnt have the print command.

    is there a way of including a button on the receipt page after the user has made a purchase, that spools that page to the printer? a simple jscript print command?

    many thanks,
    JD

    #2
    resolved...

    no matter, figured it out myself. in the interest in helping others...

    open Act_ReceiptPrimar.html...

    insert:

    Code:
       <SCRIPT LANGUAGE="JavaScript">
    function myprint()
    {
    window.print();
    }
    //  End -->
    </script>
    in between the <HEAD> and </HEAD> tags.

    insert:

    Code:
    <form>
    <input type=button value="Print Page" onClick="myprint()"> 
    </form>
    inside the <BODY></BODY> tags where you want the button.

    I added it at the top of the page before the receipt starts. So it looked like this...

    Code:
    NETQUOTEVAR:FOOTER
    	</td></tr><form>
    <input type=button value="Print Page" onClick="myprint()"> 
    </form>
    </table>
    
    </div>
    
    
    </body>
    ta guys
    JD

    Comment

    Working...
    X