![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: String of EmbeddedOleObject Topic Summary: Created On: 12-Jan-2006 18:18 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 | |||
![]() |
|||
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! |
|||
![]() |
|||
![]() |
|||
Try the getXML() command.
------------------------- Cliff Bly Edited: 12-Jan-2006 at 20:18 by cliff Bly |
|||
![]() |
|||
![]() |
|||
quote: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 |
|||
![]() |
|||
![]() |
|||
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.
------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|||
![]() |
|||
![]() |
|||
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 |
|||
![]() |
Telelogic DOORS
» DXL Exchange
»
String of EmbeddedOleObject
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.