Solved

pictures from RTF document

Posted on 2002-05-22
2
212 Views
Last Modified: 2013-11-20
hi
i have an application witch generates RTF documents.
Is there a way to convert these RTF documents to pictures? gif or jpeg formats ??

please advise

thanks
0
Comment
Question by:dragosh
2 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 200 total points
ID: 7026995
Set the RTF to a Richedit control.
U will get the FORMATRANGE structure from the richedit.
That structure contains the dc of the text.

U can convert this dc into bitmap ( U can find this on MSDN Samples ) or to any other file types ( Using IPicture Interface )

GOOD LUCK
0
 
LVL 3

Author Comment

by:dragosh
ID: 7106886
roshmon: 10x for your tips, i'm giving the points to you

rgds
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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