Solved

Embed Images in RTF when converting from HTML

Posted on 2001-08-21
5
973 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now