Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have to design a template in which column name are almost same like:

January		|		 |		|Run Date               |
--------------------------------------------------------------------------------------
urrent DDS	|Added DDS	 | Termed DDS	|Current Locations	|Added 
--------------------------------------------------------------------------------------
Locations	|Termed Locations| 2/28/2015


I have to print same tamplate 12 times ,only I thing I have to change is month name .

Can any one please suggest how to run a loop for this?
Posted
Updated 3-Nov-15 22:54pm
v2
Comments
George Jonsson 4-Nov-15 5:27am    
What does your current code look like?
Just put it in a loop and change the variable that contains the name of the month.
This question seems too easy, so maybe you haven't given all information.

1 solution

C#
string[] months = { "January", "February", ... };
foreach (string month in months)
{
    // build and print your template 
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900