⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo.xml

📁 关于生成EXCEL文件的封装类
💻 XML
字号:
<?xml version="1.0" encoding="GB2312"?>
<root>
<print>
<width>650</width>
<border>1</border>
<cellpadding>4</cellpadding>

<!-- sheet标签,只能定义为非汉字. -->
<sheet>Sheet1</sheet>

<foreword align="center" value="" rowspan="3" size="18" height="20" face="华文行楷" colspan="5">前言标题——客户自动评级结果#%0</foreword>
<foreword></foreword>
<foreword align="right" value="" datefmt="yyyy-MM-dd" rowspan="2" bcolspan="1" width="200" colspan="3" size="12">日期: #DATE# 
                                              单位:#%1 </foreword>
<foreword></foreword>
<!--  title value中的内容用 #; 分割  -->
<title datefmt="yyyy-MM-dd" bcolspan="0;1;3" colspan="0;1;1" rowspan="1" align="right" 
face="宋体" width="100;100;120;100;110" colnum="0;0;0;2;3;4" value="标题行\序号#;机构:#;
10000.010#;#DATE##;币种:人民币#;   单位:元、个">
</title>
<title></title>
<title/>
<title colspan="8" face="宋体" value="标题行:#DATE#" datefmt="yy/MM/dd"></title>


<head align="center" font="b" height="25" size="12" rowspan="1">头__序 号</head>
<head align="center" font="b" height="25" size="12" rowspan="1">机 构</head>
<head align="center" font="b" height="25" size="12" colspan="2">白 金 卡</head>
<head align="center" font="b" height="25" size="12" colspan="2">金    卡</head>
<head align="center" font="b" height="25" size="10" >数 量3</head>
<head align="center" font="b" height="25" size="10" >上 升3</head>
<head align="center" font="b" height="25" size="10" >下 降3</head>
<head align="center" font="b" height="25" size="12" colspan="0" width="160">合 计</head>

<head align="center" font="b" height="25" size="10" rownum="2" bcolspan="2">数 量</head>
<head align="center" font="b" height="25" size="10" rownum="2">上 升</head>
<head align="center" font="b" height="25" size="10" rownum="2">下 降</head>
<head align="center" font="b" height="25" size="10" rownum="2" bcolspan="0">数 量2</head>
<head align="center" font="b" height="25" size="10" rownum="2">上 升2</head>
<head align="center" font="b" height="25" size="10" rownum="2">下 降2</head>
<head align="center" font="b" height="25" size="12" rownum="2" colspan="2">银    卡</head>

<head align="center" font="b" height="25" size="10" rownum="2">数 量0</head>

<!-- 在生成Excel文件时,value中域所对应的数据类型 -->
<!-- 请在type属性中注明 N代表数值型、L代表长整型、S代表字符串、-->
<!-- D代表浮点类型,D后可跟浮点位数(D2代表2位小数位)。 用‘;’分割 -->
<!-- 其它默认为字符串 -->
<!-- type用法:type="2|D3;3|S;5|N" 说明:第二个域类型为浮点型,3位精度。 -->
<!-- 第三个域为字符串。第五个域为数字型。 -->
<list align="center" height="25" num="35" type="0|N;6|D1;2|S;3|S;4|N"
value="finalserial;sjhm;khxm;zjh;jgbm;email;qq"/>

<bottom/>
<bottom/>
<bottom bcolspan="1;4" colspan="1;1" align="left" face="宋体" width="100;120;100;110" colnum="0;0;3;4" value="底部这是:#;#%0#LEN=9;#%1#;币种:人民币#;   单位:元、个"></bottom>
<bottom value="bye bye" colspan="8" align="right"></bottom>
<page align="center" fmt="str" value="true" />
</print>




<print>
<width>650</width>
<border>1</border>
<cellpadding>4</cellpadding>
<sheet>Sheet2</sheet>

<foreword align="center" value="" size="12" height="20" face="华文行楷" colspan="8">客户自动评级结果#%1</foreword>

<foreword align="right" value="" datefmt="yyyy-MM-dd" rowspan="2" bcolspan="1" width="200" colspan="3" size="12">日期: #DATE#                                               单位:#%0 </foreword>
<foreword></foreword>

<title colspan="8" face="宋体" value="机构:#DATE#" datefmt="yy/MM/dd"></title>

<head align="center" font="b" height="25" size="14" rowspan="1">序 号2</head>
<head align="center" font="b" height="25" size="14" rowspan="1">机 构2</head>
<head align="center" font="b" height="25" size="14" colspan="3">白 金 卡2</head>
<head align="center" font="b" height="25" size="14" colspan="3">金    卡2</head>
<head align="center" font="b" height="25" size="14" colspan="3">银    卡2</head>
<head align="center" font="b" height="25" size="14" colspan="1">合 计</head>

<head align="center" font="b" height="25" size="14" rownum="2">数 量</head>
<head align="center" font="b" height="25" size="14" rownum="2">上 升</head>
<head align="center" font="b" height="25" size="14" rownum="2">下 降</head>
<head align="center" font="b" height="25" size="14" rownum="2">数 量</head>
<head align="center" font="b" height="25" size="14" rownum="2">上 升</head>
<head align="center" font="b" height="25" size="14" rownum="2">下 降</head>
<head align="center" font="b" height="25" size="14" rownum="2">数 量</head>
<head align="center" font="b" height="25" size="14" rownum="2">上 升</head>
<head align="center" font="b" height="25" size="14" rownum="2">下 降</head>
<head align="center" font="b" height="25" size="14" rownum="2">数 量</head>

<list align="center" height="25" num="35" type="0|L;1|S" value="finalserial;sjhm"/>


<bottom/>
<bottom bcolspan="1;4" colspan="1;1" align="left" face="宋体" width="100;120;100;110" colnum="0;0;3;4" value="机构:#;#%0#LEN=9;#%1#;币种:人民币#;   单位:元、个"></bottom>
<bottom value="bye bye" colspan="8" align="right"></bottom>

</print>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -