asp.net中的CrystalReportViewer怎样实现分页呢 asp.net中的CrystalReportViewer怎样实现分页呢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置每页的数量http://www.cnblogs.com/skycode/archive/2008/07/24/1712027.html private void pd_PrintPage(object sender, PrintPageEventArgs ev){ Graphics g = ev.Graphics; bool HasMorePages = false; PrintElement printElement = null; foreach(XmlNode node in doc["root"]["reporttable"].ChildNodes) { printElement = Parser.CreateElement(node);//调用解析器生成相应的对象 try { HasMorePages = printElement.Draw(g);//是否需要分页 } catch(Exception ex) { this.label1.Text = ex.Message; } } //在页底中间输出页码 Font font = new Font("黑体", 12.0f); Brush brush = new SolidBrush(Color.Black); g.DrawString("第 " + Pages.ToString() + " 页", font,brush,ev.MarginBounds.Width / 2 + ev.MarginBounds.Left - 30, ev.PageBounds.Height - 60); if(HasMorePages) { Pages++; } ev.HasMorePages = HasMorePages;}http://blog.donews.com/GodWood/page/3 怎么将图片上传到图片服务器上? 可有办法保存上次操作的控件? 急。。。。。 web项目打包生成失败 求水晶报表导出excel的代码~~~~~~~~~~ 如何更新到asp.net 2.0? 能不能让datagrid的每一列的长度固定下来?? 求救 ,, VS调试 localhost 的端口不统一,,, 为什么vs.net不能打开duwamish7界面? 我是菜菜鸟谁帮我解答一下"Console" vbscript获取日期的问题 用repeater显示数据库中的一条数据
http://www.cnblogs.com/skycode/archive/2008/07/24/1712027.html
{
Graphics g = ev.Graphics;
bool HasMorePages = false;
PrintElement printElement = null; foreach(XmlNode node in doc["root"]["reporttable"].ChildNodes)
{
printElement = Parser.CreateElement(node);//调用解析器生成相应的对象
try
{
HasMorePages = printElement.Draw(g);//是否需要分页
}
catch(Exception ex)
{
this.label1.Text = ex.Message;
}
} //在页底中间输出页码
Font font = new Font("黑体", 12.0f);
Brush brush = new SolidBrush(Color.Black);
g.DrawString("第 " + Pages.ToString() + " 页",
font,brush,ev.MarginBounds.Width / 2 + ev.MarginBounds.Left - 30,
ev.PageBounds.Height - 60); if(HasMorePages)
{
Pages++;
}
ev.HasMorePages = HasMorePages;
}
http://blog.donews.com/GodWood/page/3