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: Problem with rich text
Topic Summary:
Created On: 16-Apr-2007 17:32
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.
 16-Apr-2007 17:32
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Ok. I'm trying to get the rich text value of an attribute. I bolded the text of an attribute of a module I'm working in. Then got the rich text string value of that attribute using richText(o."attribute name"). According to the DXL manual, if the text of my attribute is "test" in bold, it should return "{\b test}". However, I get this:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}
\viewkind4\uc1\pard\b\f0\fs20 test\b0\par
}

Obviously an RTF string of the text. Is there an option somewhere to set how rich text is stored in DOORS? To use RTF formatting or DOORS rich text formatting? Does anyone have a function to convert RTF formatting to DOORS formatting?

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 16-Apr-2007 17:37
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

It appears that you tried to use doors print command which prints to a non rich text window.

Your solution might be to look at: either
DBE richText
or
displayRich in a column
Report this to a Moderator Report this to a Moderator
 16-Apr-2007 17:51
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I assigned the result of richText(o."attribute name") to a string variable, then printed out the result of that.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 16-Apr-2007 18:07
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

OK. I got it working the way I wanted. Basically the main problem I was having was that even self formatted rich text strings weren't being outputted to excel properly (I used a lot of the functions from the Enhanced Export to Excel). It was because I was checking to see if the Excel file existed, if not, I used the Stream operator to create a file at the directory I wanted with the proper name. Obviously, this does not format the file correctly and rich text will not work.

So I changed it to if the file doesn't exist, add a workbook. Then my self formatted strings started working. Then I tried doing:

richTextFragment(richText(o."attribute name"))

DOORS will recognize the RTF formatting of \\b text \\b0 as rich text and the Enhanced Export to Excel functions will properly format the cell.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.