My WebLink
|
Help
|
About
|
Sign Out
Search
TSTool_UserManual_10-21-00
CWCB
>
Decision Support Systems
>
DayForward
>
TSTool_UserManual_10-21-00
Metadata
Thumbnails
Annotations
Entry Properties
Last modified
8/28/2013 2:08:13 PM
Creation date
8/28/2013 2:02:12 PM
Metadata
Fields
Template:
Decision Support Systems
Title
TSTool User's Manual - 10.21.00
Description
User's Manual for version 10.21.00
Decision Support - Doc Type
Software Documentation
Date
7/14/2013
DSS Category
DMI Utilities
Contract/PO #
C153966A
Prepared By
Riverside Technology, Inc.
Jump to thumbnail
< previous set
next set >
There are no annotations on this page.
Document management portal powered by Laserfiche WebLink 9 © 1998-2015
Laserfiche.
All rights reserved.
/
242
PDF
Print
Pages to print
Enter page numbers and/or page ranges separated by commas. For example, 1,3,5-12.
After downloading, print the document using a PDF reader (e.g. Adobe Reader).
Download electronic document
Show annotations
View images
View plain text
TSTool Documentation Spreadsheet Integration <br /> Spreadsheet Integration - 5 <br /> <br />A more robust way to manipulate Excel files is to utilize a software package or library that has been <br />written specifically to manipulate Excel files through an application programmer interface (API). The <br />following options are available for integrating TSTool an d Excel and an appropriate option should be <br />chosen for the specific environment, problem, and user : <br /> <br />• Use built -in TSTool features to interact directly with Excel *.xls , *.xlsx file s : <br />o The TSTool ReadTableFromExcel() command will read a table from Excel and the <br />table can be processed by other table commands. For example, use the <br />TableToTimeSeries() command to convert data read from Excel into time series <br />that can be further processed with TSTool commands. <br />o There currently is no TSTool command implemented to w rite to an Excel workbook , <br />although this may be implemented in the future . <br />o There currently is no TSTool command implemented to read time series directly from an <br />Excel workbook (without using the TableToTimeSeries() command), although <br />this may be implemente d in the future. <br />o There currently is no TSTool command implemented to write time series directly to an <br />Excel workbook, although this may be implemented in the future. <br />o The Apache POI package (http://poi.apache.org) is used for integration with Excel files. <br />F unctionality that is envisioned for future TSTool enhancements can be implemented <br />using this package. <br />• Use built -in TSTool features to interact directly with Excel *.csv file s , which can be edited by <br />Excel and do not include formatting, formulas, etc.: <br />o Use the ReadDelimitedFile() command to read time series from a delimited file <br />that was exported from Excel as a *.csv file . <br />o Use the ReadTableFromDelimitedFile() command to read a table from a <br />delimited file that was exported from Excel as a *.csv file . <br />o Use the WriteDateValue() command to write a DateValue format file. The bottom <br />part of the file can be read i nto Excel as a delimited file. A command may be <br />implemented in the future to write time series to a delimited file (with no extra <br />information). <br />o Use the WriteTableToDelimitedFile() command to write a TSTool table to a <br />delimited (*.csv ) file that can be opened in E xcel. <br />• Use built -in TSTool features to interact with an Exc el file as if it is a database : <br />o Define an ODBC DSN for the Excel file and use a GenericDatabaseDataStore (see <br />Generic Database DataStore appendix). Use DatabaseEngine=”Excel” and <br />specify the OdbcName property in the datastore configuration file. <br />o Use the ReadTableFromDataStore() command: <br /> The Excel worksheet must be relatively simple with column headings in the first <br />row. <br /> N eed a good reference for EXCEL SQL statements, in particular showing <br />complex queries and how to write to the sheet ? What are the limitations on SQL <br />when processing E xcel files ? <br />o Optionally use the TableToTimeSeries() command to convert the table to time <br />series. <br />o There currently is no command to read a datastore table into a time series (without using <br />the TableToTimeSeries() com mand); however, this capability may be added in <br />the future. <br />• Use Python software to read/write Excel files and create files that can be processed with TSTool <br />commands, such as a *.csv file and the ReadTableFromDelimitedFile() command . The <br />133
The URL can be used to link to this page
Your browser does not support the video tag.