Add a single row in DT in order to append in excel

I want to append filename and count in an excel sheet. For that I am trying to add row in datatable first with ArrayRow property. I am writing ArrayRow as follows: {fileName(1).ToString,Rowcount.ToString} and also passing the DT variable. Is the syntax correct? When I print the DT in message box, It always shows blank. What am I doing wrong?

you cannot print your tempDT as is, its an object. Try printing its rows/columns’ values.

1 Like

Thank you. You are right, I was printing it wrong. The datatable was getting appended as expected after all.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.