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: How to have WEXP export Heading 2 as bold.
Topic Summary: WEXP is changing 'Heading 2' to 'Heading 2 + No Bold' upon export
Created On: 10-Jul-2007 22: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.
 10-Jul-2007 22:01
User is offline View Users Profile Print this message


Greg Barry

Posts: 9
Joined: 21-Mar-2007

When Paragraph heading is ' <WEXP Export Style:Heading 2>, the result after running WEXP is the style 'Heading 2 + No Bold' within the generated word doc when using template with Heading 2 defined.
How can this be corrected to allow exporting to Bold?
Report this to a Moderator Report this to a Moderator
 11-Jul-2007 10:08
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

I am a bit confused about the usage of "WEXP Export Style". This is a WEXP related attribute, defining the style for exporting views. It can have the values "book" or "table", thus your usage together with a format style is strange. From your post I would actually guess, that the very wording of your Heading is "<WEXP Export Style ...>" which also does not make much sense to me.

Anyway, the underling question is how can you confuse WEXP in the way you described? First, it might help to see the actual rich Text formatting of your Heading. If you add a layout DXL column with just one line of code:

display richTextFragment(richText(obj."Object Heading"))

you can get this information.

I was not able to reproduce your problem, i.e. formatting a Heading 2 in DOORS in such a way that the Word format style was "Heading 2 + No bold", but I was able to create a similar output with italics:

I formatted the Heading in DOORS such that the rtf String was "Heading 2 \i italic\i0 ", i.e., the words "Heading 2" was not changed, the word "italic" was set, well in italics. In DOORS, it looked like this:

Heading 2 italics


The Word template for Heading 2 was "bold + italic", and the resulting output was just reversed, i.e. "Heading 2" had the correct format style, the word "italic" was set in "Heading 2 + No italic". Like this

Heading 2 italics

Thus, the setting of "\i" in the rtf string actually did not force the font to italic, but actually toggled the "Italic" property of the font, equivalent to pressing the appropriate button in the word file. I was not able to get the same behaviour with the "bold" property, however.

All of this does not solve your initial problem, therefore I would recommend that you check that your actual Heading text is free of additional rich Text features manually brought in by the user. Then the created format style should not be modified.

Hope that helps,

Peter

Edited: 11-Jul-2007 at 10:13 by Peter Albert
Report this to a Moderator Report this to a Moderator
 12-Jul-2007 16:31
User is offline View Users Profile Print this message


Greg Barry

Posts: 9
Joined: 21-Mar-2007

Thanks Peter,
That worked.
I ran the DXL attribute script and it showed /b text /b0, I then removed all rich text bold, italics, etc. and it worked.
 
Thanks again,

   --Greg
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.