zoukankan      html  css  js  c++  java
  • C#不用COM组件导出数据到Excel中

    <?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'>
      <LastAuthor>admin</LastAuthor>
      <Created>2014-08-22T04:28:58Z</Created>
      <LastSaved>2014-08-22T04:28:59Z</LastSaved>
      <Version>12.00</Version>
     </DocumentProperties>
     <ExcelWorkbook xmlns='urn:schemas-microsoft-com:office:excel'>
      <WindowHeight>9840</WindowHeight>
      <WindowWidth>21360</WindowWidth>
      <WindowTopX>120</WindowTopX>
      <WindowTopY>60</WindowTopY>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
     </ExcelWorkbook>
     <Styles>
      <Style ss:ID='Default' ss:Name='Normal'>
       <Alignment ss:Vertical='Center'/>
       <Borders/>
       <Font ss:FontName='宋体' x:CharSet='134' ss:Size='11' ss:Color='#000000'/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
      <Style ss:ID='s62'>
       <NumberFormat ss:Format='@'/>
      </Style>
      <Style ss:ID='s63'>
       <Font ss:FontName='宋体' x:CharSet='134' ss:Size='11' ss:Color='#000000'/>
       <NumberFormat ss:Format='@'/>
      </Style>
     </Styles>
     <Worksheet ss:Name='样本'>
      <Table>
       <Row ss:AutoFitHeight='0'>
        <Cell><Data ss:Type='String'>样本号</Data></Cell>
       </Row>
       <Row ss:AutoFitHeight='0'>
        <Cell ><Data ss:Type='String'>2014071201</Data></Cell>
       </Row>
      </Table>
      <WorksheetOptions xmlns='urn:schemas-microsoft-com:office:excel'>
       <PageSetup>
        <Header x:Margin='0.3'/>
        <Footer x:Margin='0.3'/>
        <PageMargins x:Bottom='0.75' x:Left='0.7' x:Right='0.7' x:Top='0.75'/>
       </PageSetup>
       <Unsynced/>
       <Print>
        <ValidPrinterInfo/>
        <PaperSizeIndex>9</PaperSizeIndex>
        <HorizontalResolution>1200</HorizontalResolution>
        <VerticalResolution>1200</VerticalResolution>
       </Print>
       <Selected/>
       <Panes>
        <Pane>
         <Number>3</Number>
         <ActiveRow>1</ActiveRow>
         <ActiveCol>1</ActiveCol>
        </Pane>
       </Panes>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
    </Workbook>

  • 相关阅读:
    MySQL 中事务的实现
    Spring Boot 生成接口文档 swagger2
    一些开源项目
    LTP随笔——本地调用ltp之ltp4j
    Linux随笔之——./configure、make、make install(转)
    Linux笔记之——Linux关机命令详解(转)
    Ubuntu杂记之——JDK、ANT安装、配置
    Android随笔之——Android ADB详解
    Android APK签名
    Android随笔之——跨进程通信(一) Activity篇
  • 原文地址:https://www.cnblogs.com/junior/p/4204015.html
Copyright © 2011-2022 走看看