Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS, Android and iOS. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications.
Question:how to get the last column used/last column that has some data in a excel file programmatically by using C#?
Description:I need to iterate through a single row where I don’t know the end range as I have a dynamically generated excel file which might have different number of columns used every time. I am using following code, taken from reference code List<string> myValue = new List<string>(); //unknown end Range //need to get the Last data filled column or Last Column used in the following line string endRange="D1"; foreach (Range row in sheet.Cells.Rows.Range["A1", endRange]) { Range cell = (Range)row.Cells[1, 1]; if (cell.Value2 != null) { myValue.Add(Convert.ToString(cell.Value2)); } }
Posted by: Peter Andre | Posted on: Jan 22, 2020
Question:Iterate through a single specified row of an excel sheet using vsto in C# code?
Description:I have a excel sheet and I need to create a list containing all the values of the specified row or specified range!
Posted by: Samantha Jones | Posted on: Jan 15, 2020
Question:How to update Legend / series text of powerpoint chart using VSTO in C#?
Description:I am dynamically adding series items but the series/Legend items always showing text as series1,series2 and so on… but let say I want to update them as my series 1, my series 2, and so on. I am clueless as there is very less information available regarding the topic.
Posted by: Samantha Jones | Posted on: Jan 10, 2020
Question:Having issues after converting json to csv, languages other than English encoded as special characters also mobile number displayed as exponential values
Description:I have used the javascript code for the conversion of json object to csv file and it was working fine when I have one language(English) but when i have added another language Arabic in my case , the generated csv showing special characters instead of Arabic characters and also mobile numbers are always displayed as exponential values in csv file.
Posted by: Junaid Aziz | Posted on: Dec 18, 2019
Question:convert my json object to csv downloadable file using jquery or javascript?
Description:I want to convert my json object to csv downloadable file for excel, I am having a simple list of submitted forms and the data is coming in the form of json against a ajax request on a controller method in C# ,that is why i want to convert my json on client side through jquery or javascipt.
Posted by: Umer khan | Posted on: Dec 12, 2019