Skip to content

Commit

Permalink
bug fixes for excel commands
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepleez committed Jan 8, 2020
1 parent c3e7173 commit 1263074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override void RunCommand(object sender)

Microsoft.Office.Interop.Excel.Application excelInstance = (Microsoft.Office.Interop.Excel.Application)excelObject;
string sheetToDelete = v_SheetName.ConvertToUserVariable(sender);
Microsoft.Office.Interop.Excel.Worksheet workSheet = excelInstance.Sheets[sheetToDelete];
var workSheet = excelInstance.Sheets[sheetToDelete] as Microsoft.Office.Interop.Excel.Worksheet;
workSheet.Select();


Expand Down
2 changes: 1 addition & 1 deletion taskt/Core/Automation/Commands/ExcelWriteRangeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void RunCommand(object sender)
var excelObject = engine.GetAppInstance(vInstance);

Microsoft.Office.Interop.Excel.Application excelInstance = (Microsoft.Office.Interop.Excel.Application)excelObject;
Microsoft.Office.Interop.Excel.Worksheet excelSheet = excelInstance.ActiveSheet;
var excelSheet = (Microsoft.Office.Interop.Excel.Worksheet)excelInstance.ActiveSheet;

DataTable Dt = (DataTable)dataSetVariable.VariableValue;
if (string.IsNullOrEmpty(targetAddress)) throw new ArgumentNullException("columnName");
Expand Down

0 comments on commit 1263074

Please sign in to comment.