C#不用COM組件匯出資料到Excel中

來源:互聯網
上載者:User

標籤:

<?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>

C#不用COM組件匯出資料到Excel中

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.