Solved

Embed Images in RTF when converting from HTML

Posted on 2001-08-21
5
976 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

733 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