rvf file loading problem.

General TRichView support forum. Please post your questions here
Post Reply
yoon jin suk
Posts: 20
Joined: Fri Sep 01, 2006 4:20 am
Location: seoul korea

rvf file loading problem.

Post by yoon jin suk »

My duty is converting from Delphi 3 source to Delphi 7 source.

The rvf file saved from Delphi3 is loaded well in Delphi 7.
But the rvf file saved from Delphi 7 is unloaded well in Delphi 3.
Just White page is showen. That is, the data is not showen.

I want to load rvf file saved from Delphi 7 in Delphi 3.

The TRichViewEdit version is 1.9.24.
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me this RVF file, I'll try to see what's wrong.
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

send rvf file

Post by bojung »

i sent e-mail

i am korean..

error message :

Error reading TFontInfo.FontName invalid property value ...
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Oops, I am afraid it cannot be fixed :( TRichView relies on Delphi streaming mechanism for saving styles, but the method of saving non-English strings was changed in newer version of Delphi.
As I understand, you use fonts with non-English names...
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

then .. it's impossibility?

Post by bojung »

then it's problem impossibility?

if without respect to open possibility?

tech me. please ..

it's very importance...
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I am afraid you need to convert documents in another formats, if you want to save them in Delphi 7 app and load both in Delphi 7 and Delphi 3 app.
For example, save RVF document without styles (rvfoSaveTextStyles, evfoSaveParaStyles excluded from RVFOptions), and save styles separately in ini-file (RVStyle.SaveINI)
bojung
Posts: 11
Joined: Thu Jan 05, 2006 8:38 am

LoadRTFFromStream <-> SaveRTFFromStream

Post by bojung »

i test it.

delphi 7 -> savertffromstream

delphi 3 -> loadrtffromstream .


then it's success.

but, savervffromstream , loadrvffromstream is error .

it's delphi stream problem?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

There must be no difference in saving to file or stream.
May be you use TStringStream? This class cannot be used for storing RVF documents or any binary data.
Post Reply