用printer对象写打印代码printer.currentx=1000
printer.currenty=1000
printer.print "XXXX名称"
printer.enddoc