3个回答
展开全部
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Command1_Click()
Picture1.AutoRedraw = True
BitBlt Picture1.hDC, 0, 0, Me.Width, Me.Height, GetDC(Me.hwnd), 0, 0, vbSrcCopy '抓屏
Dim sFile As String
sFile = App.Path & "\" & Format(Now, "yyyy.mm.dd hh.mm.ss") & ".BMP"
Set Picture1.Picture = Picture1.Image
Picture1.AutoRedraw = False
SavePicture Picture1.Picture, sFile '保存
End Sub
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Command1_Click()
Picture1.AutoRedraw = True
BitBlt Picture1.hDC, 0, 0, Me.Width, Me.Height, GetDC(Me.hwnd), 0, 0, vbSrcCopy '抓屏
Dim sFile As String
sFile = App.Path & "\" & Format(Now, "yyyy.mm.dd hh.mm.ss") & ".BMP"
Set Picture1.Picture = Picture1.Image
Picture1.AutoRedraw = False
SavePicture Picture1.Picture, sFile '保存
End Sub
更多追问追答
追问
我这个窗体是有滚动条的,抓屏抓不全啊
追答
去VB那边问,这边的分俺不稀罕。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
如果纯粹是为了保存为图片,建议用截屏(shit+ Print Screen键)然后在pshotoshop中粘贴
一屏不完,分多次截屏,再用PS拼贴
一屏不完,分多次截屏,再用PS拼贴
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
安装Adobe Acrobat Pro;或虚拟打印,不都可以转成PDF吗?
good luck!
good luck!
追问
开始就是这样做的,虚拟打印完了转的pdf会有一些出入
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |