I had already implemented interfaces from Uniface to Excel and Outlook, now it is time for Word. I've collected all Word COM signatures using /pid option of /sti command.
I am currently able to open a Word document into DOCX format and apply to it various other operations/methods collected from automatic signatures loading. So far so good!
Trying to save the document into an RTF format using SaveAs2 (SaveAs2 is the evolution of original SaveAs starting from MS Office 2010) I get this error:
ICCDRV-COM-ERR Error with ICC system occurred, The call to COM method "SaveAs2" failed, due to a data type mismatch on COM parameter 0: COM error 0x80020005, described as "Incompatibilità tra tipi." (ICC system status: ←2147352571>).
BTW: "Incompatibilità tra tipi" in italian means "data type incompatibility".
What it seems very strange to me are these words "on COM parameter 0"; parameter 0 is usually the name of the call itself!
I've already tried various actions, including:
- verifying all parameters one by one and total number of them: parameters are all VT_VARIANT, aka string
- defining all parameters explicitely (also if they are all defined as Optional into official documentation)
- manually modifying SaveAs2 adding an handler at the beginning of it because on some documentation it is reported giving back an handler to the new object (not reusing the old handler)
...but the error is never changed so I am thinking something wrong happened during signatures loading but no trace about it in the original log from Uniface /sti.
Could someone help me or at least point me in the right direction?
Thanks in advance for any tips or trick!