用asp.net2005开发网站,现在我准备用水晶报表,我以前没用过,现在想了解下水晶报表的相关知识。 比如用VS2005自带的水晶报表注册收不收费,和其它要注意的事项。以及深入学习的提示。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //****下面是水晶报表操作共公接口//****报表举目类型 public enum RepDocumentEnum { SystemUserRetDocument, //系统用户信息 DeptNameRetDocument, //部门信息 OnLinOrderRetDocumnet, //在线订单信息 OtherRepDocument, //其它报表 } public static void LoadCrytReptView(ref DataSet DSet, string repDocumentPath, RepDocumentEnum mRepDocumentEnum, ref CrystalDecisions.Web.CrystalReportViewer CryRepView) { //*****报表处理连接 ConnectionInfo connectionInfo = new ConnectionInfo(); connectionInfo.ServerName = ReadWebConfigNode("ServerName"); connectionInfo.DatabaseName = ReadWebConfigNode("DataBaseName"); connectionInfo.UserID = ReadWebConfigNode("UserID"); connectionInfo.Password = ReadWebConfigNode("Password"); //****构造一个报表文档 ReportDocument oRep = new ReportDocument(); switch (mRepDocumentEnum) { //*****加载系统用户报表 case RepDocumentEnum.SystemUserRetDocument: oRep.Load(repDocumentPath); oRep.SetDataSource(DSet.Tables[0]); break; //*****加载部门报表 case RepDocumentEnum.DeptNameRetDocument: oRep.Load(repDocumentPath); oRep.SetDataSource(DSet.Tables[0]); break; //****加载在线订单报表 case RepDocumentEnum.OnLinOrderRetDocumnet: oRep.Load(repDocumentPath); oRep.SetDataSource(DSet.Tables[0]); break; //****其它报表 case RepDocumentEnum.OtherRepDocument: oRep.Load(repDocumentPath); oRep.SetDataSource(DSet.Tables[0]); break; } CryRepView.ReportSource = oRep; SetDBLogonForRetot(ref connectionInfo, ref oRep); } 招.net开发工程师,有兴趣的可以投递简历至: [email protected] 求正则 如何在web页面的固定位置输出较长内容的文本? 江湖救急。急,急,急,固定树图??? 100分,大家顶~~~~~~~~~~ datalist 导出excel的一个错误,指点一下 VS2003怎么做网站啊!!! 关于asp.net与windows2003的问题,紧急求助 Jmail的问题 急? 用ASP.NET写入文本为何是乱码?web.config已改 获取网页源码?(有的网页获取不了)请教!! DROPDOWNLIST为什么不能加项目 接口和抽象类有什么区别
public enum RepDocumentEnum
{
SystemUserRetDocument, //系统用户信息
DeptNameRetDocument, //部门信息
OnLinOrderRetDocumnet, //在线订单信息
OtherRepDocument, //其它报表
} public static void LoadCrytReptView(ref DataSet DSet, string repDocumentPath, RepDocumentEnum mRepDocumentEnum, ref CrystalDecisions.Web.CrystalReportViewer CryRepView)
{
//*****报表处理连接
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = ReadWebConfigNode("ServerName");
connectionInfo.DatabaseName = ReadWebConfigNode("DataBaseName");
connectionInfo.UserID = ReadWebConfigNode("UserID");
connectionInfo.Password = ReadWebConfigNode("Password"); //****构造一个报表文档
ReportDocument oRep = new ReportDocument(); switch (mRepDocumentEnum)
{
//*****加载系统用户报表
case RepDocumentEnum.SystemUserRetDocument: oRep.Load(repDocumentPath);
oRep.SetDataSource(DSet.Tables[0]);
break;
//*****加载部门报表
case RepDocumentEnum.DeptNameRetDocument:
oRep.Load(repDocumentPath);
oRep.SetDataSource(DSet.Tables[0]);
break;
//****加载在线订单报表
case RepDocumentEnum.OnLinOrderRetDocumnet:
oRep.Load(repDocumentPath);
oRep.SetDataSource(DSet.Tables[0]);
break;
//****其它报表
case RepDocumentEnum.OtherRepDocument:
oRep.Load(repDocumentPath);
oRep.SetDataSource(DSet.Tables[0]);
break;
} CryRepView.ReportSource = oRep;
SetDBLogonForRetot(ref connectionInfo, ref oRep);
}
[email protected]