最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
web下水晶报表的使用!
时间:2022-07-02 11:23:42 编辑:袖梨 来源:一聚教程网
在web水晶报表的使用。
首先
需要在.aspx.cs文件中引入:using CrystalDecisions.CrystalReports.Engine;
创建.xsd文件和.rpt文件,.xsd文件其实是在.aspx.cs中创建的DataSet中的字段的映射。(可以添加,修改)。
然后
在.aspx.cs文件中操作,
ReportDocument oCR =null;
DataSet ds = data.GetDataSet();
oCR = new R_StandardAuditPrint();
oCR.SetDataSource(ds);
crvMainView.ReportSource=oCR; //CrystalDecisions.Web.CrystalReportViewer crvMainView 报表浏览器
其次
需要注意是,在 .aspx文将中,设置CRYSTALREPORTVIEWER的一些属性,
最后
在.aspx的btnprint.onclick事件中调用(javascript)
function printpage(m_printpage)
{
var newstr = document.all.item(m_printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = newstr; window.print();
document.body.innerHTML = oldstr;
return true;
}
完成打印!
首先
需要在.aspx.cs文件中引入:using CrystalDecisions.CrystalReports.Engine;
创建.xsd文件和.rpt文件,.xsd文件其实是在.aspx.cs中创建的DataSet中的字段的映射。(可以添加,修改)。
然后
在.aspx.cs文件中操作,
ReportDocument oCR =null;
DataSet ds = data.GetDataSet();
oCR = new R_StandardAuditPrint();
oCR.SetDataSource(ds);
crvMainView.ReportSource=oCR; //CrystalDecisions.Web.CrystalReportViewer crvMainView 报表浏览器
其次
需要注意是,在 .aspx文将中,设置CRYSTALREPORTVIEWER的一些属性,
最后
在.aspx的btnprint.onclick事件中调用(javascript)
function printpage(m_printpage)
{
var newstr = document.all.item(m_printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = newstr; window.print();
document.body.innerHTML = oldstr;
return true;
}
完成打印!
相关文章
- mcjs网页版免下载秒玩-mcjs在线畅玩入口 03-07
- Twitter网页版-2025登录注册与防封终极指南 03-07
- 免费漫画网站直通入口-免费漫画首页真人版入口 03-07
- 蛋仔小游戏免费秒玩入口(云游戏版)-2026最新蛋仔派对秒玩链接免登录直达 03-07
- oppo服务中心-oppo官网首页 03-07
- z-library电子书下载-zlibrary官方入口 03-07