![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Conversion of text to italic or bold and back Topic Summary: Created On: 29-Jan-2007 18:33 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi Krishna, what do you think about a layout DXL column? It should be a one liner ![]() for italic: displayRich("{\\i "(obj."Object Text""")"}"); for bold: displayRich("{\\i "(obj."Object Text""")"}"); Greetings Reik | |
![]() |
|
I am working on a module where the values of an attribute are to be converted to bold or italic, export the module to Word where the text of the attribute values retains the same bold or italic format. Once the export is done, I want to revert to the normal text for the attribute values in the DOORS module. |
|
![]() |
|
![]() |
|
Are you sure you want to convert to non-bold in doors then change it back after export? Why not do it in Word?
Or just strip the bold indicator - export it and never change the actual object. Also, you will have to view the actual RTF to be sure of your RTF string contents but the attached code will change an ENTIRE object text that is bold to unbold then change it back to bold again. If you want to change multiple instances of bold \ unbold in a given object you'd have to modify this a bit. I'm a little confused why you might want to do it, but hope this helps... Dan |
|
![]() |
|
![]() |
|
Thanks for the response , Dan. I'm sorry that I did not explain in detail what I wanted to do with the module. The module view has the Object text and another column for the attribute "Comments". I have to generate a Word document from this view with the comments in italic (or bold). I am able to generate a report with the attribute name "Comments" already in italics ( I believe this is built-in in the Export - MS Office - Word operation), but the comments text is the same format as that in the module. I want to change the Comments text (which is an attribute value) in the module to italics by a DXL program, and after export to Word, change the text in the module back to normal format. I can do the same job manually going through the Word document, or think of a VBA script. However it is more convenient if I can do it in the module. |
|
![]() |
|
![]() |
|
Hi Krishna,
what do you think about a layout DXL column? It should be a one liner ![]() for italic: displayRich("{\\i "(obj."Object Text""")"}"); for bold: displayRich("{\\i "(obj."Object Text""")"}"); Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hi Reik, I am overwhelmed by the elaborate syntax required to be used for Rich Text and usually avoid using them. But this really is a simple solution.
Thank you - Krishna |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Conversion of text to italic or bold and back
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.