Lebans richtext control - import doc or rtf

M

mike

I'm using Lebans richtext control, http://www.lebans.com/richtext.htm,
and i need to load a word doc into it. On his site, it lists
LoadRTFfile as a property, but that is not being recognized as a valid
property. Has anyone successfully loaded a doc into his control? I
tried converting a doc to a rtf and opening that through automation and
then copying and pasting it from the clipboard to the control, but
nothing saves. Any help would be greatly appreciated at this point!

I'm in dire need of some help here...it seems when i copy the text
using app.selection.copy in word automation, its only copying the plain
text, and that is the reason why the rft control is not accepting it.
Any ideas??
 
D

Douglas J Steele

Actually, it would be a method, not a property.

What does your code that's failing look like?
 
M

mike

Actually, i got it working, i read the rtf just like a text file and it
displayed it properly.. pretty simple it turns out..

dim f as integer

f = freefile
open strDocument for input as f
cntrl = input$(lof(f), f)
close f


thanks anyway!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top