Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6: Copying the entire contents of the webpage to the clipboard
#1
I need to copy the contents of the page.

Using Webbrowser control (IE11) in VB6, I copied the content this way:



Code:
1. Webbrowser1.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
2. Webbrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
3. Webbrowser1.ExecWB OLECMDID_CLEARSELECTION, OLECMDEXECOPT_DONTPROMPTUSER



The above code selects the entire page (equivalent to Ctrl+A),

then copies the entire page to the clipboard (Ctrl+C) and finally deselects the selection.



Could you point out how to copy the content usingĀ AntView ActiveX?



Your RequestCurrentHtml method works great and retrieves the source HTML code.



Is it possible to add a method to copy the content of the page?



Best Regards
Przemek
Reply


Messages In This Thread
VB6: Copying the entire contents of the webpage to the clipboard - by MrPrzemek - 2022-10-04, 06:12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)