[摘要]") objprinter.close //断开与打印机的连接 Set objprinter = nothing Set objfs = nothing // 关闭Fil...
")
objprinter.close //断开与打印机的连接
Set objprinter = nothing
Set objfs = nothing // 关闭FileSystem组件对象
End Function
</script>
服务器端脚本:
<%
Set conn=server.CreateObject ("adodb.connection")
conn.Open "DSN=name;UID=XXXX;PWD=XXXX;"
Set Rs = server.CreateObject("adodb.recordset")
Rs.Open("select ……"),conn,1,1
%> //与数据库进行交互
HTML页面编码:
<HTML>
………
<FORM ID=printinfo NAME="printinfo" >
<INPUT type="button" value="打印>>" id=print name=print > //调用打印函数
<INPUT type="hidden" id="text1" name="label" value=<%=………%>> //保存服务器端传来的数据
………
</HTML>
关键词:WEB打印设置处理方案3(FileSystem组件完成WEB打印)