copy exact content of webpage in word via visual basic
Posted on 2007-09-28
I am creating a Visual Basic 6 app that needs to take the content of a webpage (including images, formatting, etc.) and copy it into a Word file.
I thought about two ways of doing this:
1)Open an instance of IE via Visual Basic, do a "Select All - Copy", then paste the clipboard in Word
2)Save the webpage as mht and open it in Word (is there a component that lets me save a url as if I opened Explorer and did "Save As Mht file"?)
Can you guys show me how to accomplish any of these two strategies?