Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want create html reports in asp.net with C#
any one can help me ??
I want to know the how to design and coding
give just demo.

thanks in advance
Posted
Comments
Devang Vaja 15-Mar-13 8:59am    
what happend ??

1 solution

C#
HTMLTable tbl;
HTMLTableRow Tr;
HtmlTableCell Tc;
Tc.innerText="Hello World";
Tc.bgColor="lightGreen";
Tc.Style.Add("font-names","Verdana");
Tc.Attributes.Add("title","Tooltip Hi");
Tr.Cells.Add(Tc)
tbl.Rows.Add(Tr);

You Can Fill Dataset and in For loop You can customize table rows and display it like this
you just have to write
Tc.innerText=ds.tables[0].Rows[i]["SrNo"];
it's Too much easy to customize and Print The Html Reports
 
Share this answer
 
v4

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