Problem loading from blob field
Posted: Tue Dec 06, 2005 10:57 am
I have been using TDBRichView without problems
I now need to load a TRichView component from same blob field that I have been using with TDBRichView
The code I am using is as follows:
try
BlobStream := MyQuery.CreateBlobStream(MyQuery.FindField('SummaryDescription'), bmRead);
txtSummaryDescription.LoadTextFromStream(BlobStream, 0, 0, False);
txtSummaryDescription.Format;
except
end;
FreeAndNil(BlobStream);
I get rubbish in the control even though the content is same as I was loading with TDBRichView
I have an RVStyle compoennt associated with the TRichView component
The content was originally created in MS Word and pasted into the TDBRichView component
I now need to load a TRichView component from same blob field that I have been using with TDBRichView
The code I am using is as follows:
try
BlobStream := MyQuery.CreateBlobStream(MyQuery.FindField('SummaryDescription'), bmRead);
txtSummaryDescription.LoadTextFromStream(BlobStream, 0, 0, False);
txtSummaryDescription.Format;
except
end;
FreeAndNil(BlobStream);
I get rubbish in the control even though the content is same as I was loading with TDBRichView
I have an RVStyle compoennt associated with the TRichView component
The content was originally created in MS Word and pasted into the TDBRichView component