![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: OLE Objects to File Topic Summary: Created On: 1-Aug-2003 09:28 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi
we plan to add OLE object support to our XML Export. For this i need to save OLE objects to a File to reference them from the XML. Is there a general way to export OLE Objects from Doors to File ? Stefan Doktor DaimlerChrysler AG |
|
![]() |
|
![]() |
|
I have also written an XML Exporter.
The following example demonstrates how I export pictures. This example only exports the first OLE if there are more than one. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 1-Aug-2003 at 13:10 by Tony Goodman |
|
![]() |
|
![]() |
|
Thx for your help.
This seem to work only for pictures. Any way to do this for all kinds of Ole-Objects ? We often use excel or visio data as OLE Objects but it seems "exportPicture" is the only way to export a Ole Object to a file. Stefan Doktor |
|
![]() |
|
![]() |
|
DOORS 6.0sr1. I did some work exporting OLE diagrams. Below are some snipettes of code that worked but you'll have to adjust it to make it work for you
//----------------- EmbeddedOleObject eooSrc = null string TextSrcLong = richTextWithOle(obj."Object Text") RichText rtSrc for rtSrc in TextSrcLong do { if (!rtSrc.isOle) continue // ignore this non-OLE RichText chunk in TextSrcLong eooSrc = rtSrc.getEmbeddedOle // Get the OLE part of this RT chunk exportPicture(eooSrc, "c:/Doors/eooSrc.png", formatPNG) } // end for each RT chunk in the Text //----------------- Note that the RT text may have several OLE diagrams in it. You'll need to build separate file names for each, possibly having a counter and using the counter in the file name. There was some problems using formatts other than "PNG" but I don't recall what they were. I would like to point out that the exported picture was IDENTICAL to the internal DOORS file that houses the OLE diagram, which I found browsing the DOORS file system. - Loie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
OLE Objects to File
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.