zoukankan      html  css  js  c++  java
  • RDLC报表系列 报表内容格式宽度与设置宽度不符

        最近做单据报表,因为客户要求打印纸有特殊规定,表格列多,但整个报表打印出来不超过宽200mm,想进一切办法的调整

    但还是发现问题,比如有这个2个字符串  "TG20111020001","博客园程序员之家" 同是string 类型的字符串,同样设置相同宽度15mm 但效果却是 前者一直撑到字符串长度为止不换行,后者超过规定单元格长度后自动换行,本想要的效果是超过所有列超过设计规格后都自动换行。结果这个问题让页面布局变乱,打印预览时部分列会在第二页打印,或者出现第二页空白页的问题。找了很多办法,最重其实很简单

         <div  style="word-break:break-all;">  //word-break:break-all 会自动换行
                    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
                        Height="100%" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
                        Width="100%">
                        <LocalReport ReportPath="SaleCenter\SaleHistoryReport_Print.rdlc">
                        </LocalReport>
                    </rsweb:ReportViewer>
                </div>

  • 相关阅读:
    【NOI2015】荷马史诗
    Codeforces Round #415 (Div. 2)
    Codeforces Round #408 (Div. 2)
    bzoj3230
    poj1743
    poj1226
    bzoj1295
    bzoj1294
    bzoj1296
    bzoj1239
  • 原文地址:https://www.cnblogs.com/wjbobo/p/RDLC.html
Copyright © 2011-2022 走看看