Start a new topic
Answered

Saving attribute value to rtf

Hi,


I am creating a small program where I need to save to RTF an rvf attribute. For description there already is a ready function for this, but I cannot find anything for attributes:   

SWDescription.DescriptionToRtf(item.Description, item.Broker); 

 Is it possible to solve this in some way?   




Best Answer

Hello Martin,


To convert an RVF attribute to RTF you can do the following:


IswAttribute attribute = item.Attribute("SID");
IswDescription description = SWDescription.MakeDescription(attribute.ValueData);
string rtf = SWDescription.DescriptionToRtf(description, item.Broker);


Let us know if that worked.


Regards,

Kristoffer Karlsson


Answer

Hello Martin,


To convert an RVF attribute to RTF you can do the following:


IswAttribute attribute = item.Attribute("SID");
IswDescription description = SWDescription.MakeDescription(attribute.ValueData);
string rtf = SWDescription.DescriptionToRtf(description, item.Broker);


Let us know if that worked.


Regards,

Kristoffer Karlsson

Hi Kristoffer,


Thank you, it works well.

Login to post a comment