Hi,

we want to generate HTML pages from EPC models containing some additional descriptions as OLE container (Word documents). The export script should access this data and add to the generated HTML page.

My code looks like that:

       var oleObjectList = currentmodel.ComObjOccs();
      
        for ( var i = 0 ; i < (oleObjectList.length - 1); i++ ) {
           var curOleObj = oleObjectList[i];
           ooutfile.value.OutputLnF("Content:"+curOleObj.ObjectData(Constants.COMOBJ_TEXT),... );
        }

It is producing output, but not the text inside the word document (looks more like RTF). Is my understanding of ObjectData() wrong, meaning does it not return the text inside the OLE object?

Thanks, Michael