Network printing function with ASP

zhaozj2021-02-16  51

Network printing function with ASP 2001: 8: 17

Network printing function with ASP

<% @Language = VBScript%> <% OPTION Explicit

DIM STRSUBMIT 'FORM Save Submit button DIM STRPRINTERPATH' FORM Save Network Printer Path Value DIM STRUSERNAME 'FORM User Name DIM STRPASSWORD' FORM DIM STRMESSAGE 'FORM Print content DIM OBJFS 'VBScript file system object DIM ObjWshNet' WSH Network Object DIM Objprinter 'Print Object

STRSUBMIT = Request.form ("Submit")%>

<% IF strsubmit = "" "" "

Note: Because this is a demonstration, where the NT account and password are used in the real application that is not encrypted, the login process should be safely processed in the real application passed in the ASP.

network printer Path:
Please enter the text you want to print: