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: RTF export and pictures
Topic Summary:
Created On: 10-Nov-2004 15:49
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-Nov-2004 15:49
User is offline View Users Profile Print this message


Kristian Bøe

Posts: 29
Joined: 16-Jun-2003

OK, and now for another RTF export question.

We've inserted a few pictures into some moduels. When we want to export these modules to RTF documents these pictures are ignored. However, the picures that were in the original RTF that was imported into the DOORS module is exported!

Both pictures have the picture atribute set to true, the original import one has a name "RTF picture #" while the inserted one is just called "picture #". The original also has information in the RTF NonShpPict and RTF ShpPict attributes while the inserted one does not.

Anyone have any help on how to get the pictures out in the export?

Export to MS Word does include these pictures, so it seems as if it should be possible.

-------------------------
Kristian Bøe
Extenda AB
Kristian.Boe@extenda.se
Report this to a Moderator Report this to a Moderator
 9-Jul-2007 23:25
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

We're facing this same issue.

It turns out that exporting of pictures to RTF isn't supported by DOORS. Also, as you say, if a picture was imported via Import RTF, it will have the RTF ShpPict and other attributes, and will (maybe) be exported. Telelogic Support has confirmed this to me.

From looking at the export code, I can explain *why* Export to Word has the pictures but to RTF does not. As for a workaround, I'm not sure. The imported pictures are stored in the object-level attributes as RTF, and then exported back to RTF from there. But, that's not (from what I can tell) how DOORS actually stores the pictures for its own use (i.e., to display in a module). The only ways I can find to get a picture back *out* from DOORS is to put it on the clipboard or save it to a file---neither of which is very handy for exporting to RTF, where you're writing the data to a file. (The Word export copies to the clipboard and then pastes into Word.)

Perhaps one could (in the Export to RTF script) export the picture to a file, then open it as a stream and get the binary/hex data out and put THAT into the RTF (as RTF stores pictures as hex/binary in "plaintext").....

Chris
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.