Solved

Embed Images in RTF when converting from HTML

Posted on 2001-08-21
5
974 Views
Last Modified: 2008-03-10
I'm converting an HTML doc to RTF using Word Automation and this works fine.  The problem is that the RTF file that is generated has linked images rather than embedded images.  How would I set this to save with embedded images so that the RTF file could be distributed without also having to include the images?
0
Comment
Question by:epeele
5 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 6410731
Listening to hear if there is some property you can set in Word to do it...

Otherwise, you may consider doing it manually, by searching and replacing the links to those images, with the images themselves, via the OLEObjects.Add of a richtextbox.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 6410812
<ping>
0
 
LVL 11

Accepted Solution

by:
thunderchicken earned 300 total points
ID: 6410948
I did this for about 3 months straight by writing a VB app to dynamically get information from the database to a word document.

To debug, I found what the error was, and manually fixed it through word.

1. Open the damaged document in word.

2. Go to Tools -> Macro -> Record New Macro

3. Call it what you want

4. Make the necessary changes

5. Go to Tools -> Macro -> Visual Basic Editor (If you have Visual Studio Installed)

This will give you the exact macro code you can directly integrate into your application.

I would go through and make a pattern of something similar, then encorporate it into VB code and it was that easy.
0
 
LVL 17

Expert Comment

by:inthedark
ID: 6412353
The following link describes embeded RTF Picture. There is also an example.  Hit the link and then search the page for "Pictures".

http://msdn.microsoft.com/library/?url=/library/en-us/dnrtfspec/html/rtfspec.asp?frame=true
0
 
LVL 4

Author Comment

by:epeele
ID: 6419989
Using the record macro in MSWord worked GREAT!  Thanks for the advice!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 57
Macro which automatically sends attachment to Outlook 14 69
Excel - Save a copy of work book 13 84
RUNRMTCMD from AS/400 12 47
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question