Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Colored Strikethrough and Underline on DOORS export to Word
Topic Summary:
Created On: 15-Mar-2005 13:01
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-Mar-2005 13:01
User is offline View Users Profile Print this message


Adam Gerber

Posts: 17
Joined: 8-Oct-2002

This is not a DXL. This is a Microsoft WORD MACRO and has to be ran in Word. You have to create a new Word Macro, then copy and paste the code in the text file into the MACRO.

You might find these "MS Word" macros useful sometime. They come in handy when you export a table view of the “new in DOORS 7.1” module compare utility found under tools. The module compare utility works good for comparing similar modules that contain nearly the same text. The problem is on export from DOORS you get the Underlining and strikethroughs, but they are not colored.

Probably could have combined these into one script, but I’m just a hacker when it comes to VBA and they work for me, so don’t complain. One changes the font color to blue for “all” text that is underlined in a Word document. The other changes the font color to red for all text that has strikethrough in a Word document. Hopefully, you guys won’t write me back and tell me this mechanism can be done from the “MS Word” GUI.

Be aware that if you have something purposely underlined, the underline macro is going to change the font color to blue for that item.







Edited: 15-Mar-2005 at 17:30 by Adam Gerber
Report this to a Moderator Report this to a Moderator
 18-Sep-2006 05:58
User is offline View Users Profile Print this message


Jennifer Lewis

Posts: 1
Joined: 7-Dec-2005

The links to the macros no longer work, could you repost?  Thanks :-)
Report this to a Moderator Report this to a Moderator
 18-Sep-2006 09:32
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

As an aside to this question, can anyone give me a tip on how to achieve the same thing in a Layout DXL column? I saw a very good presentation (Boeing Australia) at the recent Aus/NZ user conference where they had a Layout DXL column that highlighted the diff since the last baseline, with the strikeout and underline in different colours. I can figure out the strikeouts and underlines, but have never used colours this way so far. Thanks Andrew.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 18-Sep-2006 12:03
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

There's a undocumented Layout DXL function displayRichWithColor which allows you to display your rich text buffers with the defined colors displayed, it is used in a similar fashion as displayRich.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 18-Sep-2006 13:56
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

Great, thanks. Somthing to play with over coffee tomorrow :-)

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 11-Jun-2008 19:29
User is offline View Users Profile Print this message


Rich Mason

Posts: 26
Joined: 11-Apr-2007

Adam

I'm no good at Macros, but I have been able to do an export and then use the Word replace function to replace the same colors in the word doc as in the doors module.

Blue: replace any underlined text with blue underlined text
Red: replace any strikethru text with red strikethru text
Red "Deleted Object 'xyz' follows:-" : this was a little more tricky, but it comes down to the text type. This text is of type "normal", so replace normal italic text with red normal italic text. This way your headings don't get changed if they come out as italic.

this method still fails if you've got deliberate italic text in your spec

-------------------------
Rich Mason
richard_mason@drsoptronics.com
Report this to a Moderator Report this to a Moderator
 11-Jun-2008 21:50
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

It is also possible to use colored highlighing in a layout DXL column. See this post.

Basically, you add a rich text color table and use the "\\highlight" rich text tags.

You can also use colored highlighting in richText and richField dialog box elements.

The code below produces a Layout DXL column as shown in the attached picture.




Edited: 11-Jun-2008 at 22:09 by David Jakad
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.