Click here to Skip to main content
15,891,905 members
Articles / Programming Languages / C#

Component for Fast Pass/Retrieve Data from Excel

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
13 Mar 2009CPOL3 min read 52.6K   2.2K   77  
ExcelCommunicator allows to pass and retrieve data to/from Excel as datasource/calculation-engine
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <!-- TemporaryFolder to store the optional charts retrieved -->
  <TemporaryFolder>C:\Inetpub\wwwroot\ExcelParser\WindowsClient\Configuration</TemporaryFolder>
  <!-- Path of the excel file to pass and retrieve values from it -->
  <ExcelFilePath>C:\Inetpub\wwwroot\ExcelParser\WindowsClient\ExcelSample\ExcelSample.xls</ExcelFilePath>
  <!-- Collection of inputs to pass to excel file -->
  <Inputs>
    <!-- This first input will be a range of one value that will be placed on cell A1 on Sheet nº1 and is a "Values" type -->
    <Input>
      <Cell>A1</Cell>
      <SheetIndex>1</SheetIndex>
      <DataType>Values</DataType>
    </Input>
  </Inputs>
  <!--Collection of outputs retrieved from excel file -->
  <Outputs>
    <!-- This first output will be a range of values from A1 to C30 in the Sheet index nº2, and will be stored in the output hashtable with key "Test1"-->
    <Output>
      <DataType>Values</DataType>
      <Start>A1</Start>
      <End>C30</End>
      <SheetIndex>2</SheetIndex>
      <FullName>Test1</FullName>
    </Output>
    <!-- This second output will be a Chart in Sheet index nº2, and will be stored in the output hashtable with key "Chart"-->
    <Output>
      <DataType>Chart</DataType>
      <SheetIndex>2</SheetIndex>
      <ChartIndex>1</ChartIndex>
      <FullName>Chart</FullName>
    </Output>
  </Outputs>
</Configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions