Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save images in doc file

Status
Not open for further replies.

miptleha

Programmer
Aug 10, 2009
4
RU
How remove web references from doc document?

What I mean:
Open Internet Explorer and save any page with images as 'Web page, HTML only'. Open this html in Microsoft Word and save as doc file. This file will not include images (file to small and images does not seen when network disabled). How to include images in Word document?
 
So, are you saying you DO want the images, or you DON'T want the images? I'm not 100% sure of what you mean.

If you DON'T want the images, nor placeholders, then you can manually delete them if the file isn't too large/long, or you are only dealing with one file, for instance.

If you DO want the images, then that's another scenerio. The way web pages work is they don't actually embed the images in the page, but rather they REFER TO the images. So the image could be referred to with something like:
<img src="/images/image1.gif" alt="Image One" />

Here's a reference on how IMG tags work in HTML.

In that case, the only real method would probably be to copy/paste the images from the original web page to your Word Document. Of course, if you do this, and they are not your images, then you'll have to make sure you've got permission from the original user to use your images...

--

"If to err is human, then I must be some kind of human!" -Me
 
Thank you for response.

I want images, but don't want <img> tag in doc file. I want convert all external images into embedded one.

Or, as alternative, remove all images.
 
Well, if you want the images, then see my last comment from above:
me said:
In that case, the only real method would probably be to copy/paste the images from the original web page to your Word Document. Of course, if you do this, and they are not your images, then you'll have to make sure you've got permission from the original user to use your images...

--

"If to err is human, then I must be some kind of human!" -Me
 
Thanks, now I understand. But this method is not suitable for me, because I need to convert html to doc programmatically.
 
You can save the document as html archive or complete html document. This will allow to save images too. Next open it in word and delete hyperlinks (in reverse order loop).

combo
 
thanks for advice: deleting hyperlinks.
if it will be possible to convert images from hyperlinks to embedded objects it will be extremely well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top