Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
accessexcelfile [2020/04/26 03:33] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Read Excel File ===== | ||
- | |||
- | Excel file (*.xls files Excel 2003) can be read by MScript. | ||
- | |||
- | Below is a simple example that demonstrate this: | ||
- | |||
- | |||
- | <!-- declare data set --> | ||
- | <dataset id=" | ||
- | | ||
- | <!-- load data from the file --> | ||
- | <action code=" | ||
- | | ||
- | <!-- read the data from data set --> | ||
- | <log level="" | ||
- | <log msg=" | ||
- | | ||
- | <!-- advance data set to next row --> | ||
- | <action code=" | ||
- | <log msg=" | ||
- | |||
- | |||
- | By detault, the first sheet is read. To read a specific sheet, append the name of the sheet to //db// attribute as follows: | ||
- | |||
- | <dataset id=" | ||
- | |||