16,022,737 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.