How can I know the file size a TWPCustomRtfEdit will create before it is saved to file?
#1
♥ 0
How can I know the file size a TWPCustomRtfEdit will create before it is saved to file?
Hi,
using a TMemoryStream with SaveToStream avoids some overhead. You can then use MemoryStream.SaveToFile to save it after you have checked the size.
Regards,
Julian Ziersch