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>

posted @ 2013-03-06 15:08  Tom.汤  阅读(992)  评论(0编辑  收藏  举报