Bonjour,
J'ai créé un programme c# qui lance une macro de mise en forme Excel. J'ai testé ce programme en ligne de commande et il fonctionne. Ce programme est appelé par un script PHP et là, ça plante avec le message suivant:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x800A03EC): The macro 'Lancer' cannot be found. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at Facturation.Program.Main(String[] args) X-Powered-By: PHP/5.1.4 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html c:\inetpub\wwwroot\bin\facturation c:\inetpub\wwwroot\facturation.xls
Je sais que c'est du code erreur C#, mais le programme trouvait la requête avant d'être appelé par PHP. Il y a peut être une histoire de paramètrage...
Toute idée est la bienvenue.
Merci d'avance
Matthieu