Even if I try in my code:
And I see the Edit Module appear and execute the macro by myself, it still doesn't update the graphs correctly via C# while using the Ocx.
I really tried all possible ways I could so far, but macros aren't being executed when I open the documents, or via C# manipulate that it should open the Edit Module and manually do the trigger myself.
When I do a
And I open myself the report, then for the first time, my event is being triggered by myself, but not when I do:
qvReport = axQlikOCX1.OpenDocument(filepath, "", ""); // should trigger all macros OnOpen
It actually should launch all macros which are in the OnOpen, but it doesn't. If I launch QlikView by myself without the OCX, it is being done correctly.
qvReport.Load(configuration.QVFile); // open my qvw file
qvReport.SetVariables(configuration.VariableParameters); //change the variables + reload+ save (ok, but it change change graphs, so the save won't be done on the updated infos, but still on old once)
qvReport.Load("E:/tmp.qvw"); //reopen the changed qvw file
Even tried to take the original file and saveAs and to use the saveAs.
But, it never changes the graphs... Is it coming from the OCX? Because when I open my QlikView document, the variables have in fact changed and the graphs are being changed since the OnOpen is being triggered, but the graphs aren't changed when I run it from the OCX in .NET