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: Help with OLE objects in 7.0
Topic Summary: problems with OLE objects and dxl scripts
Created On: 19-May-2005 09:02
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.
 19-May-2005 09:02
User is offline View Users Profile Print this message


arlene lyle

Posts: 16
Joined: 18-Oct-2002

Hi,

I am having problems with DOORS 7.0. We are planning to migrate to DOORS 7.1 as we are currently still on v5.2. I have created a test database (v7.0SP1) and archived & restored some of our projects. We have a dxl report generator and when I try to run one of these scripts on the v7.0 module it stops and gives me the following error;

-R-E- DXL: null OleAutoObj parameter was passed into argument position 1

I think this is a problem with the OLE objects in the module. Can anyone help me with this problem?

Thanks

Arlene
Report this to a Moderator Report this to a Moderator
 19-May-2005 09:29
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

This is a guess, but does the module contain an OLE object whose application is not installed on the client?

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-May-2005 10:50
User is offline View Users Profile Print this message


arlene lyle

Posts: 16
Joined: 18-Oct-2002

the OLE objecsts were imported from Word - I imported a whole word document. And there is Word installed on the PC.

Can you help????
Report this to a Moderator Report this to a Moderator
 19-May-2005 17:09
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I would like to point out that in v5, an Object could have a single OLE diagram in it. Either the Object did, or did not, have an OLE; see dxl command oleIsObject(). In v6 and v7, Objects could no longer contain an OLE object; rather any Text attribute could have zero or more OLEs embedded within it. Command oleIsObject now returns whether there is an OLE somewhere in Object Text.

Anyway, v5 DXL that deals with OLEs needs a paradigm conversion, from "Deal with the OLE in the object" to "Deal with each OLE in each Text Attribute value of this object".

- Louie
Report this to a Moderator Report this to a Moderator
 29-Sep-2005 14:10
User is offline View Users Profile Print this message


Richard White

Posts: 2
Joined: 19-Jul-2005

Here is some more specific info on Arlene's problem. The dxl script is trying to paste a Word Picture OLE into Word 2000. The oleCopy command is successful but the oleMethod statement returns "OLE Problem: Command Failed". The same routine works OK for Visio OLE objects. I have tried inserting new OLEs into the document so it is not something that has come through the migration process. The dxl sequence is: if (oleCopy o) { // Copy OLE clear autoargs // Clear autoargs put(autoargs, "Placement", wdInLine) // (wdInline = 0) oleMethod(objRange, "PasteSpecial", autoargs) // Paste the clipboard Regards Richard
Report this to a Moderator Report this to a Moderator
 29-Sep-2005 18:16
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

The way that RTF is handled was completely changed between version 5 and version 7. I had to make some changes to our exporter when we migrated and in the end decided to go for a major rewrite. I reccommend that you use a "diff" utility to compare the Telelogic Word Exporter version 5 code with the Telelogic Word Exporter version 7 code. As most bespoke utilities are based on this exporter the neccessary changes should become clear to you through carrying out this exersize. If you have the time and inclination you should consider basing your report generator on the Telelogic "RTF exporter". This is a good option for version 7 because the OLE's are now stored in the RTF and exporting is many many times faster than it is using the massive amount of inter process communication that controlling WORD from within DOORS saddles you with. Good Luck Richard

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 30-Sep-2005 11:48
User is offline View Users Profile Print this message


Richard White

Posts: 2
Joined: 19-Jul-2005

Many thanks for the info Richard. I am not keen to totally rework the report generator yet! I have tried the example in the DXL Reference Help for oleCopy that uses rtf but no change. I have also used the script from topic "Determine OLE file type" in this Forum and my problem ones all come back with OLE class word.document. I suspect that I need to include a WdPasteDataType constant in my PasteSpecial. Regards Richard
Report this to a Moderator Report this to a Moderator
 30-Sep-2005 18:41
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

After rereading this I see you intend to "migrate" using Archive and Restore. That's a mistake. You want turn off the v5 DOORS service, copy the entire Windows file system to a new location, point the v6 service to this new location. Get it to work. Copy it again to a new location and point the v7 service to this new location.

Archive and Restore will screw up many views that reference other modules (using IDs), but most importantly will mess up ALL you specific-access records, since the Users in the new Database don't have the same UniqueIDs as in the old. You could get around this by archiving the User DB in v5 and restoring it in v7. I can talk you through that if you want.

- Louie
Report this to a Moderator Report this to a Moderator
 5-Oct-2005 08:25
User is offline View Users Profile Print this message


frederic romeas

Posts: 1
Joined: 5-Jul-2004

Hello,

If you have OLE export problems with DOORS 7.1, you should use the new function "richTextWithOle" in your wordDumpBodyVBA function to get the text and the OLE of the exported object. The function wordDumpOLEVBA is not needed anymore.

Regards,

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