Openening a RVF file

General TRichView support forum. Please post your questions here
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me the file artikels.db_memo2_220.rvf to richviewgmailcom
I still does not understand the reason of AV.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I tried your code with readme.rvf from RichViewActions and I cannot see any problem.

PS: if you use SaveTextToStreamW, specify the encoding for the stream: LoadFromStream(stream, TEncoding.Unicode)
Gismo
Posts: 11
Joined: Tue Feb 21, 2012 2:32 pm

Post by Gismo »

file send
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Thank you, this is a bug.
It happens when attempting to export list markers (bullets/numbering) to text. This document contains list markers having ListNo=-1. Such markers are normally not displayed, and the components works as if they do not exist.
However, for text exporting, such list markers were not taken into account.
A quick fix:
open RVMarker.pas, find TRVMarkerItemInfo.AsText, add after the line LevelInfo := GetLevelInfo(TCustomRVData(RVData).GetRVStyle);:

Code: Select all

  if LevelInfo=nil then
    exit;
This fix will be included in the next update.

PS: if you set TextOnly parameter of SaveTextToStream[W] = True, the component will not save list markers to the stream. For these non-existing text markers, it does not matter. However, it may matter for normal bullets/numbering.
Post Reply