Microsoft Excel (XLSXR)读者参数

Different feature types are read by default, depending on whether you make changes to the Reader Parameters (accessible from the Add Reader > Parameters button):

By default, all worksheets and named ranges are selected.You can use the Select button to filter the display.

  • When you open the Reader Parameters, by default, all of the worksheets in the spreadsheet will be selected, and all named ranges will be deselected.This is so that all cell data is read into FME only once.
  • If you add a reader without opening the Reader Parameters dialog, and there is more than one feature type, you will have to select the feature types to add.

Dynamic Schema

If you set Workflow Options toDynamic Schema, then all worksheets and all named ranges will be read into FME.

This option breaks the dependence on the source and destination schema.One merged feature type will be connected to one writer feature type that is configured for dynamic operation.The schema is not replicated on the workspace;therefore, if the source data changes, you will not have to update the workspace – FME will do this automatically.

This will result in duplicated data (since any information in a named range is also on the sheet that contains it), but it means that no feature types will be hidden by default.

Sheets to Read

This area shows all of the worksheets and named ranges in the Excel file.A named range is of the formsheetName/NamedRangeName

注意:" data-mc-conditions="">注意:Tables are treated the same as named ranges, and will appear with the same form.

Example

In this example, the selected area is a named range: the name of the named range is日期_hatched, and it is on the sheeteggs

The columnField Names Rowallows you to select which row contains the header names, and the columnCell Rangeallows you to restrict the information to read.If a cell in theField Names Rowis blank (if, for example, it is a merged cell), it will automatically be given the merged cell value.

The Select menu allows you to choose which worksheets/named ranges to read.By default, FME will selectAll

If the columnField Names Rowvalue is set to zero (0), then the column names will be set to the Excel column lettersA, B, C,etc.This can be useful if there are no field names, or if they are not consistent.

Preview

This area shows a preview of the data (up to 100 rows) of the selected feature type (either feature or named range).As shown in the example here, if you select a header row from the Sheets to Read area, that row will be shown in boldface text.

Attributes

This area displays the attributes that were created for the feature type (schema scanned).

  • Name:The attribute name that will be placed on resulting features.
  • Type:The attribute type is listed in this column.You can change the attribute type by clicking on the field and selecting from the drop-down list.This only affects the resulting features if the selected attribute type is a coordinate type or a date type.
  • Width:This value is ignored for attributes produced from this reader.
  • Precision:This value is ignored for attributes produced from this reader.

Filter

Filter a list of attributes by typing a key sequence into this field.For more information, seeUsage Notes

Read Formulas (.formula)

If this parameter is selected, an attribute will be added to the workspace for columns that contain a formula.The reader reads formulas used to calculate the values of a cell and stores the formula in the attribute 。formula

Read Hyperlinks (.hyperlink)

If this parameter is selected, an 。hyperlink attribute will be added to the workspace for columns that contain a hyperlink.

Read Formatting (.formatting)

If this parameter is selected, an 。formatting attribute will be added to the workspace for columns that contain formatting.

Multiple File Parameters

Advanced

Schema Attributes