Solved

pictures from RTF document

Posted on 2002-05-22
2
215 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
[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
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

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

752 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