R
Rich
I have the coding as below to insert a new row in OWC spreadsheet.
OWC11.Range rng = (OWC11.Range) spreadsheet.Cells[1,1];
rng.EntireRow.Insert(OWC11.XlInsertShiftDirection.xlShiftDown);
....
but always got below error:
The best overloaded method match for 'OWC11._Range.Insert(ref object)'
has some invalid arguments
Argument '1': cannot convert from 'OWC11.XlInsertShiftDirection' to
'ref object'
Can anyone tell me what's wrong with this coding?
Thanks in advance.
OWC11.Range rng = (OWC11.Range) spreadsheet.Cells[1,1];
rng.EntireRow.Insert(OWC11.XlInsertShiftDirection.xlShiftDown);
....
but always got below error:
The best overloaded method match for 'OWC11._Range.Insert(ref object)'
has some invalid arguments
Argument '1': cannot convert from 'OWC11.XlInsertShiftDirection' to
'ref object'
Can anyone tell me what's wrong with this coding?
Thanks in advance.