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: Exporting Ole Objects
Topic Summary:
Created On: 2-Nov-2007 14:01
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.
 2-Nov-2007 14:01
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

I am trying to export contents of module to word document. In a column I have OLE Objects of big in size and while exporting I am getting an error message "Failed to Set clipboard contents" and when I click ok the next contents are being exported but the current OLE Objects are not being exported.

fficeffice" />> >

Presently I am suspecting the buffer which is unable to hold the OLE Objects as the size of OLE Object is large, Or event though buffer can hold but clip board is unable to hold that OLE Objects.

> >

Can any one can give me a solution to increase the buffer size or clear the clip board contents or increase the clip board contents size or any other solution exists to handle this situation.

> >

Presently I am sending appropriate code to let you know what actual functions I am using.

> >

> >

> >

Object o = current

Column c

Buffer textBuffer = create

string attrNameString = attrName c // getting attribute name of the column c

textBuffer = richTextWithOle o.attrNameString  // getting rich Text with ole of the                  

                                                                              //  column c

> >

setRichClip(textBuffer,   // Setting the system clipboard to contain textBuffer information

> >

oleMethod(objSelection, cMethodPaste) // using cMethodPaste property to paste

Report this to a Moderator Report this to a Moderator
 2-Nov-2007 17:40
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Well as far as making the buffer bigger, you can define the size of your buffer when it is created. And I don't think theres any way to increase the size of the windows clipboard. Nor have I ever ran into any size limit of it since I've copied and pasted gigabytes worth of data before.

I have a feeling just the setRichClip function isn't designed to be used with OLE objects. You could try to find a way to instead invoke the windows copy function instead of setRichClip.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 14-Nov-2007 22:08
User is offline View Users Profile Print this message


Ken McNair

Posts: 47
Joined: 12-Sep-2003

We had this problem with WEXP 10.6a but it went away when we upgraded to WEXP 11.4. I don't know how they have fixed it, so I can't help you directly if you are "rolling your own", but it may be an avenue of investigation. Jeremy Dick might be able to help you but the last time I sent him an email it bounced.

Edited: 14-Nov-2007 at 22:09 by Ken McNair
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.