Does RichViewEdit had some property to get it's plain text?
Posted: Tue Sep 20, 2005 2:49 am
Does it had?I can get the text ,but is there any simple way like "richedit.text"?
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://textally.com/forums/
Code: Select all
var
sItemDes: String;
begin
sItemDes := GetAllText(frmeMEItemList1.DBRichViewEdit1);
Showmessage(sItemDes);
end;
Code: Select all
LoadRVFFromField(rvHidden, SchoolDB.IB_QItemListExport, 'RVDESCRIPTION');
sItemDes := GetAllText(rvHidden);
Showmessage(sItemDes);
Code: Select all
function TMEProjectSelect.LoadRVFFromField(rv: TCustomRichView; qry: TIB_Query;
const FieldName: String): Boolean;
var Stream: TStream;
begin
Stream := qry.CreateBlobStream(qry.FieldByName(FieldName), bsmRead);
try
Result := rv.LoadRVFFromStream(Stream);
finally
Stream.Free;
end;
end;