Dear experts,
Is it possible to get return value from a word's function that called by AX?
static void Job42(Args _args)
{
COM WordApp;
COM WordDocuments;
real total;
WordApp = new COM("word.application");
WordDocuments = WordApp.Documents();
WordDocuments.Open(@'C:\Demo.docm');
WordApp.visible(true);
WordApp.Run('demoCalculator', 4, 4);
//WordApp.Run('main');
}
Word function:
Public Function demoCalculator(x As Variant, y As Variant) As Integer
demoCalculator = CInt(x) + CInt(y)
End Function
Regards.
*This post is locked for comments
I have the same question (0)