zoukankan      html  css  js  c++  java
  • 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))
  • 相关阅读:
    安卓AlertDialog的使用
    蚂蚁的腿
    年龄排序
    Digital Roots
    小明的存钱计划
    不高兴的小明
    管闲事的小明
    小明的调查作业
    爱摘苹果的小明
    小明的难题
  • 原文地址:https://www.cnblogs.com/liwuyi/p/5786389.html
Copyright © 2011-2022 走看看