Paste word table as OLE object

Hi

I need to paste a Word table as ole object into DOORS. After I copy the table into the clipboard in Word I can paste it to DOORS as OLE object with Edit/PasteSpecial but not with DXL olePaste function.
Do you have any suggestion how to do it in DXL?
g3ri - Wed Nov 17 05:56:21 EST 2010

Re: Paste word table as OLE object
Mathias Mamsch - Wed Nov 17 12:45:25 EST 2010

Since in DOORS 9.1 they added the "string olePasteSpecial (Object, bool)" perm and after trying a bit for myself I tend to believe that you will not get happy with the olePaste function. "callStdItem_ OLEPasteSpecialItem" might not work for you either because it will pop up the dialog for the user to confirm.

What seems to work is olePasteLink_, which could enable you to get the embedded OLE object somehow, copy it again and paste it as a non-linked object. The other way I could think of is to use an intermediate application (like excel or another word instance), do a paste special there, cut the result again and paste it to DOORS.

Hope this gives you some more possibilities to try, Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Paste word table as OLE object
g3ri - Thu Nov 18 05:58:22 EST 2010

Mathias Mamsch - Wed Nov 17 12:45:25 EST 2010
Since in DOORS 9.1 they added the "string olePasteSpecial (Object, bool)" perm and after trying a bit for myself I tend to believe that you will not get happy with the olePaste function. "callStdItem_ OLEPasteSpecialItem" might not work for you either because it will pop up the dialog for the user to confirm.

What seems to work is olePasteLink_, which could enable you to get the embedded OLE object somehow, copy it again and paste it as a non-linked object. The other way I could think of is to use an intermediate application (like excel or another word instance), do a paste special there, cut the result again and paste it to DOORS.

Hope this gives you some more possibilities to try, Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Thank you Mathias it helped a lot.