RDLC打印或导出Word的 分页设置 页边距和页面大小

RDLC 导出Word的时候发现,Word的尺寸和页边距有问题,查了MSDN看到这样一段话

Page Sizing

When the report is rendered, the Word page height and width are set by the following RDL properties: paper size height and width, left and right page margins, and the top and bottom page margins.

于是用记事本打开RDLC文件添加并修改以下参数的值 

// 页边距 

  <RightMargin>0.5in</RightMargin>
  <LeftMargin>0.5in</LeftMargin>

  <TopMargin>0.25in</TopMargin>

  <BottomMargin>0.25in</BottomMargin>

 

// 页的宽度和高度

  <PageWidth>11in</PageWidth>

  <PageHeight>8.5in</PageHeight>

 

一、取总条数和当前页数
 

"Page" & Str(Globals!PageNumber) & "  Of  "+Trim(Str(Globals!TotalPages))
posted @ 2016-08-19 09:42  Liwuyi  阅读(1831)  评论(0编辑  收藏  举报