
Printer.FontSize = Text1.FontSize
Printer.Print Text1.Text
Printer.FontSize = Text2.FontSize
Printer.Print Text2.Text
'......
'......
Printer.FontSize = Text10.FontSize
Printer.Print Text10.Text
Printer.EndDoc
End Sub
打印的Printer.PaintPicture Image1.Picture, 1, 1
Printer.EndDoc
保旅慧存的
1.先加入部件Microsoft Common Dialog Control X.X
2.创建一个 CommonDialog 名为 CD1
3.
Dim a As String, b As String
a = TextBox1.Text
b = "e:\images\" + a + ".jpg"拆悉答
cd1.showsave
if dir(cd1.filename)<>"" then
magbox "文件已存在"
else
If Dir(b) <>"" Then
filecopy b , cd1.filename
Else
filecopy "e:\images\a.jpg"陆陪,cd1.filename
End If
endif
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)