Click here to Skip to main content
16,022,737 members

Comments by Ricardo Giro Santos (Top 3 by date)

Ricardo Giro Santos 18-Jul-14 11:57am View    
Ok now I commented out the first for's (the ones with the tableCC) and left only the second for's inside each if. Now it goes on to write the first OPERADOR acurveira in the desired place (first row of EQUIPA D table) but then goes back up to the "foreach (DataRow dRow in dt.Rows)" and runs through acurveira again, re-writing the same cells. It does this 3 additional times, four in total and then gives me the Index out of Range error.
Ricardo Giro Santos 18-Jul-14 11:23am View    
I removed the size and width variables because they didn't make much sense but the same happens. It doesn't hop out of the for cycle and back to the beginning. It just runs through the whole table and then gives me the Index out of Range error.
Ricardo Giro Santos 18-Jul-14 10:10am View    
I was thinking that I can just insert it in the Excel file in the normal DataTable order and then choose each specific cell range (datatable row) and put it in the right place in each table... but that would make excel work harder and longer.