[SOLVED] Integrating MsExcel 2010
Author: dennis.vorst@uniface.com (Dennis Vorst)
Hi, Is there someone that has experience using the MsExcel signature in a Uniface environment. I found one that is for an earlier version, but the signature contracts have changed significantly in version 2010. I can instantiate the Excel application and close it. But opening an Excel file requires some additional information to be parsed to Excel as well. i have been fiddling with it for a few days and keep getting the error ICCDRV-COM-ERR Error with ICC system occurred, The call to COM method "Open" failed, due to COM error 0x80010105: COM error 0x80010105, described as "The server returned an exception." (ICC system status: )" So i am obviously parsing some wrong thing, because when I try this using VBA it works fine. Can anyone point me to a tutorial or send me an export file. It would be greatly appreciated.


I did a couple of tests and the notation "=SUM(E7:G7)" will only work when you use the SET_VALUE operation; e.g. p_value = "=SUM(E7:G7)" p_activecell->SET_FORMULAR1C1(p_value) If you would like to use the SET_FORMULAR1C1 operation then you have to specify the range relative to the current range (or cell) - this is done by specifying the row as R[n] and column as C[n], whereby n is a number. The following will give (e.g.) the sum of the range A1:A3 and assign it to A4: vWorkSheet->GET_RANGE(vActiveCell, "A4", -) vActiveCell->SET_FORMULAR1C1("=SUM(R[-3]C[0]:R[-1]C[0])") * R[-3]C[0] = A1; three rows up in the same column * R[-1]C[0] = A3; one rows up in the same column And your example should look like this: "=SUM(R[0]C[-3]:R[0]C[-1])" I hope this helps. Regards, Daniel Senior Customer TSA, Uniface



