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))

相关文章:

  • 2021-08-31
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-01-14
  • 2022-03-06
  • 2021-12-02
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案