Commit 2348432 1 parent 1f2f771 commit 2348432 Copy full SHA for 2348432
File tree 1 file changed +7
-2
lines changed
taskt/Core/Automation/Commands
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,12 @@ public override void RunCommand(object sender)
67
67
var engine = ( Core . Automation . Engine . AutomationEngineInstance ) sender ;
68
68
var vInstance = DateTime . Now . ToString ( ) ;
69
69
var vFilePath = v_FilePath . ConvertToUserVariable ( sender ) ;
70
- var vDictionaryName = LookupVariable ( engine ) ; //v_DictionaryName.ConvertToUserVariable(sender);
70
+ var vDictionaryName = v_DictionaryName ;
71
+ var vDictionary = LookupVariable ( engine ) ;
72
+ if ( vDictionary != null )
73
+ {
74
+ vDictionaryName = vDictionary . VariableName ;
75
+ }
71
76
72
77
var newExcelSession = new Microsoft . Office . Interop . Excel . Application
73
78
{
@@ -98,7 +103,7 @@ public override void RunCommand(object sender)
98
103
99
104
Script . ScriptVariable newDictionary = new Script . ScriptVariable
100
105
{
101
- VariableName = vDictionaryName . VariableName ,
106
+ VariableName = vDictionaryName ,
102
107
VariableValue = outputDictionary
103
108
} ;
104
109
//close excel
You can’t perform that action at this time.
0 commit comments