zoukankan      html  css  js  c++  java
  • 数字输出格式转换

    修改数字输出格式,直接输出的

    <td style="mso-number-format:''\@'';">' || NVL(L_H.E_NUMBER, '&nbsp') ||

                            '</td> 

    如果在BI Pulbisher 报表Excel输出身份证号想不显示科学计数法,可以通过修改定义 rtf模板实现,具体如下: 

    找到身份证号代码,右键点击属性->添加帮助文字,可看到在自动键入栏位的内容如下

    <?NATIONAL_IDENTIFIER?>

    将其修改为:

    <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?  NATIONAL_IDENTIFIER ?></fo:bidi-override>

     


    在简易的Jsp导出html版本的execl中所有的文件导出默认都是文本文件,这给业务人员带来了一些不必要的操作,建议使用下面的方法,可以调整导出的格式类型.

     

    mso-number-format:"0"

    NO Decimals

    mso-number-format:"0\.000"

    3 Decimals

    mso-number-format:"\#\,\#\#0\.000"

    Comma with 3 dec

    mso-number-format:"mm\/dd\/yy"

    Date7

    mso-number-format:"mmmm\ d\,\ yyyy"

    Date9

    mso-number-format:"m\/d\/yy\ h\:mm\ AM\/PM"

    D -T AMPM

    mso-number-format:"Short Date"

    01/03/1998

    mso-number-format:"Medium Date"

    01-mar-98

    mso-number-format:"d\-mmm\-yyyy"

    01-mar-1998

    mso-number-format:"Short Time"

    5:16

    mso-number-format:"Medium Time"

    5:16 am

    mso-number-format:"Long Time"

    5:16:21:00

    mso-number-format:"Percent"

    Percent - two decimals

    mso-number-format:"0%"

    Percent - no decimals

    mso-number-format:"0\.E+00"

    Scientific Notation

    mso-number-format:"\@"

    Text

    mso-number-format:"\#\ ???\/???"

    Fractions - up to 3 digits (312/943)

    mso-number-format:"\0022£\0022\#\,\#\#0\.00"

    £12.76

    mso-number-format:"\#\,\#\#0\.00_ \;\[Red\]\-\#\,\#\#0\.00\ "

    2 decimals, negative numbers in red and signed
    (1.56   -1.56)

  • 相关阅读:
    PHP如何解决网站大流量与高并发的问题
    HTML CSS 特殊字符表
    PHP 把返回的数据集转换成Tree树
    网页加载时域名加载数量限制
    关于浮点型误差的解决方法
    MVC三层架构
    MyBatis
    plsql储存过程
    游标和触发器
    使用plsql编程
  • 原文地址:https://www.cnblogs.com/benio/p/2598051.html
Copyright © 2011-2022 走看看