If Forms("输出").Opened Then forms("输出").Controls("PictureViewer1").Readvalue
Dim doc As PrintDoc = forms("输出").GernateprintDoc() doc.print()End If