File creation in rtf

Hello,

Is it possible to create a file in a rtf field?

Lets say, I have a view with data, I will collect some data from this view and add the result as a text file inside a rtf field on a document.

Some pointers or samples?

thanks in advance

SC

Subject: File creation in rtf

Hello Sunisa ,

Yes it can be done.Get the handle of the documents from which you need to export the data to the file and same in the disk and attach the file to rtf using the below code

Set object = bodyrtitem.EmbedObject( EMBED_ATTACHMENT, “”, flname)

where where object is NotesEmbeddedObject , bodyrtitem as richtext item and flname is the path where the file is save in the desk.

if you have any queries , you can reach me at ravi.k.daparthi@jpmorgan.com

Thanks ,

Ravi.

Subject: RE: File creation in rtf

Thank you for your response,

This is how I do it right now.

I would like to avoid to save it on a disk, even temporally.

Any other idea or suggestion?

Again thanks in advance.

SC