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: String of EmbeddedOleObject
Topic Summary:
Created On: 12-Jan-2006 18:18
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.
Answer This question was answered by Dennis Lockshine, on Friday, January 13, 2006 3:12 PM

Answer:
Thanks Paul. Using your code as an example, I took it one step further and get the RichText part of the OLE, no matter if it is a picture or embedded object. The trick with this being that an embedded object can (optionally) be followed with a \result object that is a pictual representation of the embedded object itself.

It's still a workaround for getting the RichText string value of an EmbeddedOleObject, but I can make it work for my needs.

Thanks!
-Dennis
 12-Jan-2006 18:18
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Using DOORS 7, given a chunk of RichText (rt) that contains an embedded OLE object, it is possible to get a handle on the OLE object using the function:
EmbeddedOleObject oleObj=rt.getEmbeddedOle

Does anyone know if it is possible to get the RichText String representation of the EmbeddedOleObject oleObj? For example, I want to get something that looks like this:
{\pict\wmetafile8\picw3756\pich2804\picwgoal2129\pichgoal1590
010009000003d45800000000be5800000000050000000b0200000000050000000c02f40aac0ebe
580000430f2000cc0000006a008e0000000000f40aac0e00000000280000008e0000006a000000....

I've tried several commands and nothing is working.

Thanks!
Report this to a Moderator Report this to a Moderator
 12-Jan-2006 20:16
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Try the getXML() command.

-------------------------
Cliff Bly


Edited: 12-Jan-2006 at 20:18 by cliff Bly
Report this to a Moderator Report this to a Moderator
 12-Jan-2006 21:01
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

quote:

Originally posted by: cliff Bly
Try the getXML() command.
This was a good suggestion, unfortunately the command takes an object as the argument and returns XML that represents every attribute for that object.

I've already got the RichText for the object using richTextWithOle, and as I parse it I'm trying to get the actual RichText representation of the embedded OLE chunks. Using rt.text returns a null string if the RichText chunk is an OLE object (rt.isOle == true).

Thanks,
Dennis
Report this to a Moderator Report this to a Moderator
 13-Jan-2006 12:39
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Dennis,

Have a look at the function 'extractPicture()' and the code around its call in the attached file 'utils.inc'. I think it does what you want (and a lot more besides), because I parse the messy content of the OLE object to tweak the size of pictures for export into an RTF document.

Paul.

utils.inc
utils.inc  (22 KB)



-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 13-Jan-2006 15:11
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Answer Answer
Thanks Paul. Using your code as an example, I took it one step further and get the RichText part of the OLE, no matter if it is a picture or embedded object. The trick with this being that an embedded object can (optionally) be followed with a \result object that is a pictual representation of the embedded object itself.

It's still a workaround for getting the RichText string value of an EmbeddedOleObject, but I can make it work for my needs.

Thanks!
-Dennis
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.