Is there a way to change the cell background in LotusScript? Can I extend the RTELEM_TYPE_CELL class some how?
Subject: Changing Cell Background in LotusScript
Not in the native classes. If a third party product is an option, our Midas Rich Text LSX will let you change the cell background.
Subject: Changing Cell Background in LotusScript
Yes. You can use LotusScript’s built-in DXL classes. If you need more information, please explain more about what you are trying to achieve.
Subject: RE: Changing Cell Background in LotusScript
Rod,
I am trying to change the background color of individual cells in a rich text table. Based on a code the background of the cell would be one of 6 colors. Thanks in advance,
Anna
Subject: RE: Changing Cell Background in LotusScript
Sometimes an easier way is to make six image resources containing the colours, and use a computed image background.in each cell, with hidden fields that specify the name of the resource for each cell.If you want to change the cells of an existing table, then you can export the document as DXL, change the cells, and import it again. There is sample code here. It is not for table cells, but you can use it as a starting point. For details of the tablecell element and other DXL elements, see Designer Help.
If you want to do this in a new document, then you do not need to export anything. You can use DXL tags to create the table. There is sample code here that you can use as a starting point.
Subject: RE: Changing Cell Background in LotusScript
Thanks Rod! I was toying with the idea of the image background - haven’t completely ruled it out. I found that I can set the cell background by accessing the C++ API. I also found that the LSX toolkit has a sample LSX called RichTextPlus which deals with getting and setting the Cell Background as well.
Subject: RE: Changing Cell Background in LotusScript
would you pls. let me know which version of LSX Toolkit has RichTextPlus.