asp.net中的Html报告 [英] Html Reports in asp.net

查看:67
本文介绍了asp.net中的Html报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net中使用C#

创建html报告任何人都可以帮助我吗?

我想知道如何设计和编码

只给出演示。



提前感谢

解决方案

 HTMLTable tbl; 
HTMLTableRow Tr;
HtmlTableCell Tc;
Tc.innerText = Hello World;
Tc.bgColor = lightGreen;
Tc.Style.Add( font-names Verdana);
Tc.Attributes.Add( title 工具提示嗨);
Tr.Cells.Add(Tc)
tbl.Rows.Add(Tr);

您可以在中填写数据集和 For循环您可以自定义表行并将其显示为 this
你只需写
Tc.innerText = ds.tables [ 0 ]。行[i] [ SrNo];
it ' s太容易定制和打印Html报告


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

解决方案

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


这篇关于asp.net中的Html报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆