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: 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
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.
 14-Jun-2006 12:13
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

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
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 15:01
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

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
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 16:06
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

quote:

note I'm talking about MODULE attributes here


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
Report this to a Moderator Report this to a Moderator
 14-Jun-2006 22:18
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 15-Jun-2006 11:31
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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