Solved

How do I convert an EMF image to RTF file?

Posted on 2009-04-14
9
652 Views
Last Modified: 2012-05-06
Hi,

As I didn't find it on the web, I'd like to develop a tool to convert emf files into rtf.

Does anyone have an idea to embed the image in an rtf file with C# code ?

Thanks in advance
0
Comment
Question by:JulienVan
[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
  • 4
  • 3
9 Comments
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24139048
EMF (Enhanced MetaFile) is used for spooling and sometimes for images and is a binary format. In general, image formats cannot be converted to word-processor formats, unless you use some type of OCR package to extract the readable text from the EMF.

RTF (Rich Text Format) is a format (text-based, not binary) to write markup of word-processing documents. It can contain EMF files as embedded objects and it can be viewed if the reader of the RTF file contains a viewer for EMF, but they cannot be converted.

-- Abel --
0
 
LVL 2

Author Comment

by:JulienVan
ID: 24139109
Hi abel, thanks for your comment.
I'd like to embed the image in a rtf file, would you know a way to do that with C# code?
0
 
LVL 2

Author Comment

by:JulienVan
ID: 24139404
I'm going to create the rtf documents with office automation, by opening word, creating a new document, paste the image, and save as rtf.
If anybody has another idea, thanks in advance.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 39

Assisted Solution

by:abel
abel earned 500 total points
ID: 24139429
That's a good way of doing it, of course, but if you want to bundle it you can only have your program used by people having Office. I wouldn't mind trying the EMF embedding for you, shouldn't be too hard in C# or any other .NET language.
0
 
LVL 39

Expert Comment

by:abel
ID: 25185963
This q. was answered in the first comment, which covers that EMF is not a good choice for embedded images in RTF and should be avoided. Please accept http:#24139048 as answer.
0
 
LVL 39

Expert Comment

by:abel
ID: 25193940
See my prev. comment, please. There are no other experts on this thread, no need to wait for them ;-)
0
 
LVL 2

Author Closing Comment

by:JulienVan
ID: 31569942
Sorry for the delay abel, all your comments were accurate so I accept them as multiple solutions.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

626 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