Page 1 of 1
Associating a rve file with TRichView
Posted: Sat Nov 25, 2006 5:58 pm
by rtcary
I have a TRichView component and I want to associate a rve file with it for display only. Which property to I set so the file will be displayed?
Posted: Sat Nov 25, 2006 8:08 pm
by mamouri
There is not such properties. You have to call LoadRVF method for loading a rve document into richview. There are also other methods like LoadRTF and LoadText for loading rtf and text.
Posted: Sat Nov 25, 2006 8:32 pm
by Sergey Tkachenko
Sorry, I do not understand the question.
What do you want to associate? *.rve files with some application?
Posted: Sun Nov 26, 2006 12:49 am
by rtcary
I have a rvf file that I want to display for the user, so I thought that the TRichView component is the best component to use (rather than the TRichViewEdit component). The user will then decide if they want to email it or edit the file or create a new one. If they want to edit/create the file, then I will use TRichViewEdit.
By the way, I have never used the TRichView component.
Todd
Posted: Sun Nov 26, 2006 12:45 pm
by Sergey Tkachenko
I still do not understand. Users work with applications, not with components.
Posted: Sun Nov 26, 2006 2:34 pm
by rtcary
Sorry for the confusion in my explanation. Simplified, I have a TRichView component with it's TRVStyle and I want to load a rvf file, Test.Rvf. For unknown reasons, the TRichView remains blank.
sFile := 'Test.rvf';
if FileExists(sFile) then
if RichViewRvf.LoadRvf(sFile) then
ShowMessage('Success');
Posted: Sun Nov 26, 2006 10:35 pm
by Sergey Tkachenko
Call RichViewRvf.Format after RichViewRvf.LoadRVF.
(it's the same for editor)