Usually, you don't use this code,
xlWorkSheet.Cells[ i+1, j+1] = data;
and it is replaced by something like
xlWorkSheet.Cells[ i+1, j+1].Value = data;
or
xlWorkSheet.Cells[ i+1, j+1].Formula = data;
depending in what is the data.
Quote:
Is there a possibility to put it into a specific cell? I need to export the data frame to a range beginning at cell A5. Is this possible?
Your code begin to paste in A1, just add 4 and you are done.
xlWorkSheet.Cells[ i+5, j+1] = data;