Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6: Taking screenshot of the displayed webpage
#6
(2023-08-31, 16:05:14)wila Wrote: This is now available in the released version, 1.1.314.

Hi Wil. I try this method

Code:
AntView.CapturePreview "D:\file.jpg", cpifJpeg


It saves file but I have encountered a problem "Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic." 

This message appears when I want to catch this event "OnCapturePreviewCompleted". Probably the reason is 32-bit VB6

Code:
Sub AntView_OnCapturePreviewCompleted(ByVal errorCode As Long)
Debug.Print "errorCode: " & errorCode
End Sub


Immediately after execution the CapturePreview method, bellow an error appears

Code:
Private Sub AntView_OnProcessFailed(...)
  ExitCode: -1073741819
  ProcessDescription: 6
  Reason: 3
End Sub


Despite the error, the screenshot is saved into a file

--
Regards Przemek
Reply


Messages In This Thread
RE: VB6: Taking screenshot of the displayed webpage - by MrPrzemek - 2023-09-03, 15:20:21

Forum Jump:


Users browsing this thread: 2 Guest(s)