我用个函数测试一下能打印的.dllpublic function print() as string
   on error goto err
      printer.print "this is a test"
      printer.enddoc
      print=""
      exit function
   err:
    print=err.description
end if
在asp里set test=server.createobject("PrintTest.PrintString")
Response.write(test.print)网页上显示:
   未设置对象变量或 With block 变量