![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Problem with rich text Topic Summary: Created On: 16-Apr-2007 17:32 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Problem with rich text
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.