Page 2 of 2
Posted: Tue Feb 28, 2012 11:34 am
by Sergey Tkachenko
Please send me the file artikels.db_memo2_220.rvf to richviewgmailcom
I still does not understand the reason of AV.
Posted: Tue Feb 28, 2012 11:55 am
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)
Posted: Tue Feb 28, 2012 1:06 pm
by Gismo
file send
Posted: Tue Feb 28, 2012 1:54 pm
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);:
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.