https://www.trichview.com/forums/viewto ... 515#p33515
i tried to export/import audio video to HTML and back, and finished on text variant.
Nowadays situation. Having TSRVPanel inserted in TSRichViewEdit.
I want to
1. export it to HTML as some shortcode, lets say like this [SRVPanel]
2. import it from HTML to RVE
What could be an idea of doing this?
For the 1. i tried following approach - to handle SRichViewEditSaveItemToFile - but it doesn't work - HTML always empty - if I write simple text like '123'
Code: Select all
procedure TTestReportConstructor.SRichViewEditSaveItemToFile(Sender: TCustomRichView; const Path: string;
RVData: TCustomRVData; ItemNo: Integer; SaveFormat: TRVSaveFormat; Unicode: Boolean; var OutStr: TRVRawByteString;
var DoDefault: Boolean);
begin
// if control
if (RVData.GetItemStyle(ItemNo)>=-5) then begin
OutStr:=RVData.GetItemTag(ItemNo);
end else
OutStr:=AnsiToUtf8((OutStr));
DoDefault := False;
end;
Could you give an idea how to realize it?