LoadRTF without font but with bold, underline, italic format
Posted: Thu Sep 04, 2014 1:11 pm
Hello,
I want at runtime Import RTF Streams, but without the font and size. It should use the font and size of the item Position. But other formatting of the rtf should be used, for example bold, underline, italic.
Is there a way to do this :
I have the following code :
RVData.DeleteItems(i, 1);
Stream := TStringStream.Create(sText);
Stream.Position := 0;
RVData.LoadRTFFromStream(Stream);
Stream.Free;
RVData is TCustomRVFormattedData
With my code it works, but is using the font and size of the RTF.
Best wishes
Bernhard
I want at runtime Import RTF Streams, but without the font and size. It should use the font and size of the item Position. But other formatting of the rtf should be used, for example bold, underline, italic.
Is there a way to do this :
I have the following code :
RVData.DeleteItems(i, 1);
Stream := TStringStream.Create(sText);
Stream.Position := 0;
RVData.LoadRTFFromStream(Stream);
Stream.Free;
RVData is TCustomRVFormattedData
With my code it works, but is using the font and size of the RTF.
Best wishes
Bernhard