Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 13, 2019 4:49 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: render content of rtf file as image (bitmag/jpg)
PostPosted: Fri Apr 01, 2011 11:47 am 
Offline

Joined: Thu Nov 08, 2007 4:59 am
Posts: 392
Location: Germany
Hello,

is there a way to render the content of a rtf file as an image?
So basically I need something like "Save as image" for a .rtf file.
The .rtf file can contain text and pictures.

Heinz


Top
 Profile  
Reply with quote  
 Post subject: Re: render content of rtf file as image (bitmag/jpg)
PostPosted: Fri Apr 01, 2011 1:43 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Well, you could use the DrawInto method to draw the contents of a control into a graphics object (and picture since that's where you'd get the graphics object).

However, you should be aware that the RB TextArea does NOT support graphics. It only supports a small subset of the actual RTF specification.

If that's what you need, I suggest taking a look at the Formatted Text Control from True North Software. http://www.truenorthsoftware.com/formattedtextcontrol/. It has a LOT of capabilities that the TextArea control does not have. It shouldn't be too tough to get it to do what you want.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group