TRANSFORMER

Excel source

An Excel source uses an Excel file (all versions) as source for a Transformer project. The file to be used must first be imported to Resources. See Resources for information on how to import a file.

Creating an Excel source

Right click in the Transformer design panel and choose Source -> Excel source.

It is possible to 'Drag and Drop' an .xls file from the Resources panel to the Design panel and use it as an Excel source.

 

Most File resources can be previewed by clicking the Refresh button () in the Preview panel. For Resources of types that require a special program to be opened (e.g. .xls, .doc, etc.) click the View button in the Preview panel.

 

Double-click the Excel source icon to configure it.

Properties

General

Configuration

Audit

 

To select a file, go to the Custom tab.

Custom

A number of rows from the source file are displayed below Data Range, so you can check that the correct file has been selected.

 

Next you need to describe the layout of the data in the file. Mark Auto range, and Transformer will select the top row as Header and the other rows as Data.

 

Or you can remove the mark in Auto range and specify Header Range and Data Range manually. Click and drag the mouse to mark the cells you want to use as headings and click the Set button to the right of Header range. Repeat the process for Data range. You can also enter cell IDs directly in the range fields.

A Header Range must be defined, i.e. it may not be empty

Now check the displayed rows to see that the range positions specified are correct.

 

Click OK to save the configuration or Cancel to reject.

 

There are some restriction to the Excel files Transformer can use as source.

1. Only formulas that are supported by Aspose are supported. You can see a list of supported formulas here: http://www.aspose.com/docs/display/cellsjava/Supported+Formula+Functions   

2. No links to other sheets.

3. The first row in the sheet will be treated as a Header row, if Auto range is used.

4. No empty cells allowed in Header row.

5. No empty rows allowed.

6. Empty cells will be given the following default values. If you want other default values you must adjust them in the Excel source file.

  • String - blank

  • Number - "NaN" (Not a Number)

  • Date - "January 1, 1970"

  • Boolean - "False"

7. If the first cell in a column is empty, Transformer will treat a number column it as a string and all empty cells will be blank instead of NaN.

 

Version 5.1.2.0

This document contains confidential information. Not to be copied by third parties without written authorization.

© Copyright Corporater AS - All rights reserved.