用表格顯示 數字資料時,常會有表格欄位不夠寬 而自已斷行的情況

如下例

 

Stock Qty.

                 <--明明只有1個數字但是卻自己斷行了 

              1

 

網路上找到解法 http://w1ng.hk/smartforms-extra-space-after-number/

在smartforms中的變數設定輸出格式就可以了

把原來 &GT_ZSMM_RESVLAB-VMENG& 改成 &GT_ZSMM_RESVLAB-VMENG(C)&

下表是格式設定參數及說明

&symbol(Z)& Omit Leading Zeros 
&symbol(S)& Omit Leading Sign 
&symbol(<)& Display Leading Sign to the Left 
&symbol(>)& Display Leading Sign to the Right 
&symbol(C)& Compress Spaces 
&symbol(.N)& Display upto N decimal places 
&symbol(T)& Omit thousands separator 
&symbol(R)& Right justified 
&symbol(I)& Suppress output of the initial value

arrow
arrow
    全站熱搜

    bgm 發表在 痞客邦 留言(0) 人氣()