w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
no overload for method 'this' takes '1' arguments

As @Calvin indicated there are multiple issues with the code. Here is a working solution:

string file = "Test.xls";
Application excel = new Application();
Workbook workbook = excel.Workbooks.Add();
Worksheet sheet = (Worksheet) workbook.Worksheets.Add();
sheet.Name = "First Sheet";
for (int i = 1; i <= 100; i++)
    ((Range)sheet.Cells[i, 1]).Value = "";

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.