Convert Rich Text Table to OLE

I have a problem when trying to move data from Doors to DNG using ReqIF. My Doors module has an object containing an RTF table that was (I think) copied and pasted from MS WORD. When I transfer the module data using RTF - only the text is transferred and the table becomes difficult (if not impossible) to read.

So .. my table goes from Tbl In Doors

to Tbl in DNG

 

I know why this is happening what I need to know is can I - in dxl convert the RTF table to a Word OLE table.

I cannot use the Migration option because the data in Doors is updated (using eXchange) on a regular basis.

My searches so far imply that what I want to do is not possible but I thought I'd check with some experts before giving up.

 

TIA  Mark


Mark@V - Wed Jun 27 05:27:59 EDT 2018

Re: Convert Rich Text Table to OLE
O.Wilkop - Thu Jun 28 05:28:01 EDT 2018

You can kind of do this with dxl, but it's more of a hack than a clean solution:

 

Object o = current;
string s = richTextWithOle(o."Object Text");

Stream st = write("C:/Temp/ole_"o."Absolute Number"".rtf");
st << s;
close(st);
o."Object Text" = "";

oleInsert(o, o."Object Text", "C:/Temp/ole_"o."Absolute Number"".rtf", false);

 

Basically write the rtf content of the object into a file and insert that file as ole object. The above example is only for one object, if you want to apply it to all objects in a module you'd have to find a way to detect when a rtf table is present, maybe by checking the rtf contents for a common sequence of rtf-tags.

Re: Convert Rich Text Table to OLE
Mark@V - Thu Jun 28 07:08:54 EDT 2018

Thanks - I'll give it a try

Re: Convert Rich Text Table to OLE
Bob3 - Mon Jul 30 18:33:29 EDT 2018

Mark, can you explain why this is happening?

I'm struggling with the same issue in the context of DOORS -> DNG migration. O.Wilkop's script solution is helpful, but results in a PNG screen capture of the OLE in DNG instead of interactive text. (The user has to click through and then open up the OLE) This doesn't meet the requirements for my users. I need the RTF table to come into DNG as an RTF table embedded in an individual artifact.

Thanks!