请问怎样打印PICTUREBOX里面的画面 PaintPicture 就可以也可在报表中的图象控件的picture属性设为 屏幕中的picture1.picture 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ' 我课件中的一个代码Private Sub num_print_Click()On Error GoTo 300 Dim w As Long, h As Long Dim px As Long, py As Long Set Picture1.Picture = Picture1.Image Picture1.ScaleMode = vbTwips Printer.ScaleMode = vbTwips w = Picture1.Width * N \ 100 h = Picture1.Height * N \ 100 If pos = 0 Then px = 0: py = 0 Else px = (Picture1.ScaleWidth - w) / 2 ' 打印在中间 py = (Picture1.ScaleHeight - h) / 2 End If ' 打印Picture1里面的图形 Printer.PaintPicture Picture1.Picture, px, py, w, h Printer.EndDoc300End Sub 真郁闷呀,研究VB6多线程,倒在了线程同步上。 北京有哪位熟悉VB发送ASII和字符形式的命令控制带有com口的仪器,周末我请客。 ASP DLL组件中如何调用所在ASP页面中的定义变量呢? 添加图片 【请教】关于控制datagrid的显示 控件问题 请教 请教这个连接字符串怎么写?一定给分!!!! 怎样用VB操作压缩过的BCD码,急急急急急 hhdsq:在窗口最大化时,如何保持窗口高度不变?用Hook csdn2001微软版上的 VB PowerWrap1.7 哪位有注册机?帮帮忙呀 通过程序激活另一窗口已打开的程序窗口
Private Sub num_print_Click()
On Error GoTo 300
Dim w As Long, h As Long
Dim px As Long, py As Long
Set Picture1.Picture = Picture1.Image
Picture1.ScaleMode = vbTwips
Printer.ScaleMode = vbTwips
w = Picture1.Width * N \ 100
h = Picture1.Height * N \ 100
If pos = 0 Then
px = 0: py = 0
Else
px = (Picture1.ScaleWidth - w) / 2 ' 打印在中间
py = (Picture1.ScaleHeight - h) / 2
End If
' 打印Picture1里面的图形
Printer.PaintPicture Picture1.Picture, px, py, w, h
Printer.EndDoc
300
End Sub