Associating a rve file with TRichView

General TRichView support forum. Please post your questions here
Post Reply
rtcary
Posts: 12
Joined: Sun Apr 16, 2006 4:03 am

Associating a rve file with TRichView

Post 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?
mamouri
Posts: 63
Joined: Sat Aug 19, 2006 5:06 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I do not understand the question.
What do you want to associate? *.rve files with some application?
rtcary
Posts: 12
Joined: Sun Apr 16, 2006 4:03 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I still do not understand. Users work with applications, not with components.
rtcary
Posts: 12
Joined: Sun Apr 16, 2006 4:03 am

Post 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');
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Call RichViewRvf.Format after RichViewRvf.LoadRVF.
(it's the same for editor)
Post Reply