一个excel导出模板
2012-06-26 11:18
323 查看
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %> <%@ include file="/WEB-INF/views/commons/taglibs.jsp" %> <?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> <Created>1996-12-17T01:32:42Z</Created> <LastSaved>2010-12-20T07:17:03Z</LastSaved> <Version>11.6568</Version> </DocumentProperties> <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"> <RemovePersonalInformation/> </OfficeDocumentSettings> <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> <WindowHeight>4530</WindowHeight> <WindowWidth>8505</WindowWidth> <WindowTopX>480</WindowTopX> <WindowTopY>120</WindowTopY> <AcceptLabelsInFormulas/> <ProtectStructure>False</ProtectStructure> <ProtectWindows>False</ProtectWindows> </ExcelWorkbook> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="m158682212"> <Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/> </Borders> <Font ss:FontName="宋体" x:CharSet="134" ss:Size="12" ss:Bold="1"/> </Style> <Style ss:ID="s21"> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/> </Borders> </Style> <Style ss:ID="s22"> <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/> </Borders> <Font ss:FontName="宋体" x:CharSet="134" ss:Size="12" ss:Bold="1"/> </Style> </Styles> <Worksheet ss:Name="Sheet1"> <Table ss:ExpandedColumnCount="12" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25"> <Column ss:Width="75.75"/> <Column ss:Index="5" ss:Width="61.5"/> <Column ss:Index="8" ss:Width="57"/> <c:choose> <c:when test="${not empty ImageFailedDetailList}"> <Row> <Cell ss:StyleID="s22"><Data ss:Type="String">序号</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">次品单号</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">条码号</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">单证类型</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">重新扫描条码号</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">退回用户ID</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">退回时间</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">处理标志</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">处理时间</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">退回原因</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">业务退回描述</Data></Cell> <Cell ss:StyleID="s22"><Data ss:Type="String">扫描机构</Data></Cell> </Row> <c:forEach var="item" items="${ImageFailedDetailList}" varStatus="status"> <Row> <Cell ss:StyleID="s21"> <Data ss:Type="String">${status.index+1}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.imageFailedNo}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.barCode}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.imageName}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.documentId}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.returnUserId}</Data></Cell> <Cell ss:StyleID="s21"> <Data ss:Type="String"> <fmt:formatDate value="${item.returnTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/> </Data> </Cell> <c:choose> <c:when test="${item.dealFlag eq 'Y'}"> <Cell ss:StyleID="s21"> <Data ss:Type="String">处理</Data></Cell> </c:when> <c:otherwise><Cell ss:StyleID="s21"> <Data ss:Type="String">未处理</Data></Cell></c:otherwise> </c:choose> <Cell ss:StyleID="s21"> <Data ss:Type="String"> <fmt:formatDate value="${item.dealTime}" type="date" pattern="yyyy-MM-dd HH:mm:ss"/> </Data> </Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.returnReasonDesc}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.businessRetrunDesc}</Data></Cell> <Cell ss:StyleID="s21"><Data ss:Type="String">${item.branchName}</Data></Cell> </Row> </c:forEach> </c:when> <c:otherwise> <Row> <Cell ss:StyleID="s22"><Data ss:Type="String">无数据</Data></Cell> </Row> </c:otherwise> </c:choose> </Table> <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> <Print> <ValidPrinterInfo/> <PaperSizeIndex>9</PaperSizeIndex> <HorizontalResolution>300</HorizontalResolution> <VerticalResolution>300</VerticalResolution> </Print> <Selected/> <Panes> <Pane> <Number>3</Number> <ActiveRow>8</ActiveRow> <ActiveCol>4</ActiveCol> </Pane> </Panes> <ProtectObjects>False</ProtectObjects> <ProtectScenarios>False</ProtectScenarios> </WorksheetOptions> </Worksheet> <Worksheet ss:Name="Sheet2"> <Table ss:ExpandedColumnCount="0" ss:ExpandedRowCount="0" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25"/> <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> <ProtectObjects>False</ProtectObjects> <ProtectScenarios>False</ProtectScenarios> </WorksheetOptions> </Worksheet> <Worksheet ss:Name="Sheet3"> <Table ss:ExpandedColumnCount="0" ss:ExpandedRowCount="0" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25"/> <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> <ProtectObjects>False</ProtectObjects> <ProtectScenarios>False</ProtectScenarios> </WorksheetOptions> </Worksheet> </Workbook>
相关文章推荐
- java通过模板导出excel的一个实例
- java通过模板导出excel的一个实例
- java利用POI通过模板导出excel的一个实例
- 一个很好的用C#导出数据到Excel模板的方法
- Aspose,如何用一个模板来导出到Excel
- Jxls导出excel的若干方式总结(六)-- 分sheet导出查询记录,每条记录一个sheet
- 从DataGrid导出Excel产生乱码的一个很好的解决方案
- 根据Excel模板导出Excel文件
- 一个导出指定包下 spring Controller excel清单的例子(包括包名、类名、方法名、访问路径)
- 导出多个sheet的Excel以及在服务器上压缩文件然后再导出(在这里是压缩一个excel后导出)
- 关于导出excel 把一个dataset的多个datatable导入到一个excel的多个sheet中
- java poi 通过excel模板导出并且生成多个sheet
- Java 根据模板导出Excel时,如何根据后台数据设置复选框的勾选
- SQL大圣之路笔记——把数据库中表里的数据导出成Excel(Copy时,会因分隔符问题导致许多数据存放在一个单元格中)
- 一个将数据导出到EXCEL的存储过程-数据库专栏,SQL Server
- jeesite框架导出zip压缩包(包含一个excel文件和一张缩略图以及多个附件)
- 关于使用Asp.net导出Excel,遭遇“LinkButton必须放在一个具有runat=server的标签的Form”的解决方案。
- java实现赋值Excel模板并写入后导出
- 909422229_JavaWeb Excel模板导出数据
- 传入一个table,文件名,导出Excel的方法