Skip to content

Commit da30213

Browse files
1000731-Removed the unwanted code
1 parent 200e0e0 commit da30213

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Document-Processing/Excel/Excel-Library/NET/faqs/how-to-retrieve-the-name-of-the-chart-in-an-Excel-worksheet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
3434
{
3535
IApplication application = excelEngine.Excel;
3636
application.DefaultVersion = ExcelVersion.Xlsx;
37-
IWorkbook workbook = application.Workbooks.Open(Input.xlsx");
37+
IWorkbook workbook = application.Workbooks.Open("Input.xlsx");
3838
IWorksheet worksheet = workbook.Worksheets[0];
3939

4040
//Get the chart name
@@ -43,7 +43,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
4343
Console.WriteLine("The name of the chart is: " + chartName);
4444

4545
//Saving the workbook
46-
workbook.SaveAs(Output.xlsx");
46+
workbook.SaveAs("Output.xlsx");
4747
}
4848
{% endhighlight %}
4949

@@ -56,7 +56,7 @@ Using excelEngine As New ExcelEngine()
5656
application.DefaultVersion = ExcelVersion.Xlsx
5757

5858
' Open the input workbook
59-
Dim workbook As IWorkbook = application.Workbooks.Open("D:\UG and KB\VB Project\VB Project\Data\InputTemplate.xlsx")
59+
Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx")
6060

6161
' Get the first worksheet
6262
Dim worksheet As IWorksheet = workbook.Worksheets(0)

0 commit comments

Comments
 (0)