I have a serious problem, this is my original text:
I save the text above in the database, but when you open it is cut:
I record in a table, where the field is type "image":
but it is not always what happens, see the code that opens the document:
Code: Select all
Stream := Query.CreateBlobStream(QueryMODELO,bmRead);
SRichViewEdit1.RVHeader.Clear;
SRichViewEdit1.RVFooter.Clear;
SRichViewEdit1.RichViewEdit.Clear;
SRichViewEdit1.RichViewEdit.LoadRVFFromStream(Stream);
Stream.Free;
SRichViewEdit1.RVHeader.Format;
SRichViewEdit1.RVFooter.Format;
SRichViewEdit1.SetRVMargins;
FillFields(SRichViewEdit1.RichViewEdit.RVData); ///corpo do texto
SRichViewEdit1.RichViewEdit.Format;
FillFields(SRichViewEdit1.RVHeader.RVData); ///cabeçalho
SRichViewEdit1.RVHeader.Format;
FillFields(SRichViewEdit1.RVFooter.RVData); ///rodape
SRichViewEdit1.RVFooter.Format;
thanks.