Network printing function with ASP

zhaozj2021-02-11  186

<% @ Language = VBScript%> <% OPTION EXPLICITDIM STRSUBMIT 'FORM Save Submit button DIM STRPRINTERPATH' FORM Save Network Printer Path Value DIM STRUSERNAME 'FORM DIM STRPASSWORD' FORM in DIM STRPASSWORD 'FORM Value DIM STRMESSAGE 'FORM Print Content DIM Objfs' VBScript File System Object DIM ObjWSHNET 'WSH Network Object DIM Objprinter' Print Object STRSUBMIT = Request.form ("Submit")%> Meta name = "generator" content = "Microsoft Visual Studio 6.0"> <% if strsubmit = "" "Note: Because this is a demonstration, where the NT account and password are The login process should be safely processed in the true application that is not encrypted.

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