![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Saving an OLE in a Module Attribute to File Topic Summary: Created On: 14-Jun-2006 12:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I can't see how to save an OLE in a Module Attribute to a File (note I'm talking about MODULE attributes here). I thought it would be possible to fire the OLE using oleActivate or oleOpen, then grab the activedocument in WORD (I'm trying to save a word document to a file for later use). Can't seem to think of a way to do it.
I know I can export the OLE as an embedded object in an rtf file but don't really want to go to the trouble of processing it and de-embedding it if I can simply save the OLE to a word file directly. Anyone out there got any ideas on this? ------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Are you talking about a Module Attribute or Object Attribute. Can't say I ever say anyone use an ole object in a module attribute
|
|
![]() |
|
![]() |
|
quote: You can cut and paste an OLE object into a module attribute and they live there quite happily (you can't dump them in using insert OLE etc as there is no facility to do this). I use this technique to house the Change Control Table for the one or more documents that I produce from a module. Double clicking on the OLE fires the OLE in its default application, what I ideally want is to mimic this behaviour then save the document to a file of my choice from the default application, seems a bit tricky though! ------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Mmmmm, Yes the OLE commands insist on an Object parameter.
But I notice in the next chapter Rich Text you can get a handle on an embedded OLE object within a string variable, using RichTextParagraphs. I didn't try the attached code but it may get you started. - Louie |
|
![]() |
|
![]() |
|
Hi Richard,
Louie describes how to get the embeded OLE Object, but that does not solve your problem to activate or save it. I would suggest to try these functions : RTFEmbeddedOLE_ getEmbeddedOle() RTFEmbeddedOLE EmbeddedOleObject ::.(RichText, RTFEmbeddedOLE_) GetEmbeddedOleObject string exportPicture(EmbeddedOleObject, string fileName, int format) ExportEmbeddedOle string oleRtf(EmbeddedOleObject) GetOleRtf bool oleCopy(EmbeddedOleObject) CopyEmbeddedOle May be you can use the clip board to get access to your document ![]() Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Saving an OLE in a Module Attribute to File
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.