I have one simple problem when trying to write List into the excel workbook. on string its work perfect but problem is how i can put list into excel
public List<string> _RoomType = new List<string>();
Excel.Range RoomType = (Excel.Range)_sheet.get_Range(_sheet.Cells[22, "B"] as Excel.Range, _sheet.Cells[25, "B"] as Excel.Range);
for (int i = 0; i < _RoomType.Count; i++)
{
RoomType.set_Value(Type.Missing, _RoomType[i]);
if im using for loop it sets from 22B to 25B only first value which is in list and if i dont use 'for' visual studio gives me exception : Exception from HRESULT: 0x800A03EC can anyone help me?