OLE: Automation object Error ..Creating excel

Hello,

I am getting this error when creating excel report on text field.

If the text field in notesdocument contains limited text its working fine. if the text field contains lengthy text then i am getting the error.

here is the line of code

xlsheet.range(“N” & Trim(Str(i+1))).Value = doc1.Details

Can someone give me an idea on how to avoid this.

I appreciate any help.

Thanks

Sri