Hi,
I need to run a macro in a office control in WD4A component. My macro is signed by the customer, certificates are placed where they need to be, the template (.docm) is stored in MIME repository and everything is working well.
If I tried the process with no merge-fields in the template (no running of IF_IOS_WORDPROCESSING~setfields() method) - this is where it works perfectly.
But I need to fill some merge-fields using the method setfields( ). When I do, the ACF Trace returns the information that my macro is not signed.
Can anybody provide any information on this? It is clear that the macro is found.
- I tried renaming the macro to be called - there I got a different message stating that the macro could not be run (as it does not exist) - this means it finds the macro,
- I tried deleting the same macro from my Normal.dot template (as to be sure it is trying to execute the macro that is placed in the document itselft) - did not help,
At first it looks like after calling the setfields( ) method the document is copied - but it really seems that it still finds the macro from the original document (but raises message "Not signed"). I run the macro using the string "macroname". Is there anything I could prefix to this string, something like "currentdocument.macroname" or others? When I tried some of these approaches, it states that the document "currentdocument" is not found (or not open exactly). I cannot run the macro directly from the MIME repository (SAP/WEBDYNPRO/SAP/PUBLIC.....file.docm.macroname).
What else could I try?