Calculate document size or size of Rich Text Field while document is in edit mode before sending

How to calculate the field size of rich text field while a document is in edit mode.or

to calculate the document size in edit mode.

The rich text may contain text / image pasted / attachment.

I desire to set the size limit for the document before sending it to recipent.

PLEASE HELP…its urgent.

Subject: Calculate document size or size of Rich Text Field while document is in edit mode before sending

Quite difficult because a document must be saved before you can access the NotesRichText object properties. It can be done, but it is a difficult problem and you’re better off figuring it out for yourself. Copying code won’t get you very far.