没有合适的资源?快使用搜索试试~ 我知道了~
spreadsheet api说明文档(pdf)
需积分: 50 56 下载量 76 浏览量
2009-02-07
12:56:24
上传
评论 1
收藏 2.48MB PDF 举报
温馨提示
试读
244页
formula one 控件的升级版说明文档, 可嵌入类中的excel控件
资源详情
资源评论
资源推荐
Using the e.Spreadsheet API
and Integrating the Engine
Information in this document is subject to change without notice. Examples provided are
fictitious. No part of this document may be reproduced or transmitted in any form, or by any
means, electronic or mechanical, for any purpose, in whole or in part, without the express
written permission of Actuate Corporation.
© 1995 - 2008 by Actuate Corporation.
All rights reserved.
Printed in the United States of America.
Contains information proprietary to:
Actuate Corporation
2207 Bridgepointe Parkway
San Mateo, CA 94404
www.actuate.com
www.birt-exchange.com
The software described in this manual is provided by Actuate Corporation under an Actuate
License agreement. The software may be used only in accordance with the terms of the
agreement. Actuate software products are covered by certain U.S. patents and patents pending.
Actuate Corporation trademarks and registered trademarks:
Actuate, the Actuate logo, BIRT, BusinessReports, Collaborative Reporting Architecture,
Correlink, Correlink Framework, e.Analysis, e.Report, e.Reporting, e.Spreadsheet,
Encyclopedia, Formula One, Interactive Viewing, Internet Spreadsheet, iPortal, Lens, Lens
Builder, Live Report Document, Nimble, the Nimble logo, Nimble Technology, Pace,
Performancesoft, Performancesoft Track, Performancesoft Views, ReportCast,
Report Encyclopedia, ReportingEngines, the ReportingEngines logo, Reportlet,
Spreadsheets Everywhere, Tidestone Technologies, and XML reports.
Actuate products may contain third-party products or technologies. Third-party trademarks or
registered trademarks of their respective owners, companies, or organizations include:
Adobe Systems Incorporated: Flash Player. Apache Software Foundation (www.apache.org):
Axis, Batik, Batik SVG library, Commons Command Line Interface (CLI), Commons Codec,
Derby, Struts, Tomcat, Xalan-J, Xerces, and Xerces2 Java Parser. Bits Per Second, Ltd. and
Graphics Server Technologies, L.P.: Graphics Server. Bruno Lowagie and Paulo Soares: iText,
licensed under the Mozilla Public License (MPL). Castor (www.castor.org), ExoLab Project
(www.exolab.org), and Intalio, Inc. (www.intalio.org): Castor. Codejock Software: Xtreme
Toolkit Pro. Component One, LLC.: VSFlexGrid Pro. DataDirect Technologies Corporation:
DataDirect JDBC, DataDirect ODBC. Eclipse Foundation, Inc. (www.eclipse.org): Data Tools
Platform (DTP) ODA, Eclipse SDK, Graphics Editor Framework (GEF), and Eclipse Modeling
Framework (EMF), licensed under the Eclipse Public License (EPL). International Components
for Unicode (ICU): ICU library. Liferay (www.liferay.com): Liferay, licensed under the MIT
License. Microsoft Corporation (Microsoft Developer Network): CompoundDocument Library.
Netscape Communications Corporation, Inc.: Rhino, licensed under the Netscape Public
License (NPL). Oracle Corporation: Berkeley DB. Rogue Wave Software, Inc.: Rogue Wave
library. Sam Stephenson (prototype.conio.net): prototype.js, licensed under the MIT license. Sun
Microsystems, Inc.: JAXB, JDK, Jstl. World Wide Web Consortium (W3C)(MIT, ERCIM, Keio):
Flute, JTidy, Simple API for CSS. XFree86 Project, Inc.: (www.xfree86.org): xvfb.
All other brand or product names are trademarks or registered trademarks of their respective
owners, companies, or organizations.
Document No. 081110-2-961006 November 20, 2008
i
Contents
About
Using the e.Spreadsheet API and Integrating the Engine . . . . . . . .xi
Chapter 1
About Actuate e.Spreadsheet Engine and API . . . . . . . . . . . . . . . . . . . . . . 1
About Actuate e.Spreadsheet Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
About the e.Spreadsheet Engine and API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
About Actuate e.Spreadsheet Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Accessing data sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Exporting spreadsheet reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Creating a calculation engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Separating responsibilities by area of expertise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
About Actuate e.Spreadsheet API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
About Actuate e.Spreadsheet Engine files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Deploying Actuate e.Spreadsheet Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
About Actuate e.Spreadsheet report design files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
About Actuate e.Spreadsheet Engine examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 2
Understanding the e.Spreadsheet Engine and API . . . . . . . . . . . . . . . . . . . 9
About the e.Spreadsheet Engine and API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Using a Javadoc API documentation package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Understanding the most commonly used classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
About the primary classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
About the utility classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
About the classes that JBook returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
About exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
About the API constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Using a code example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 3
Working with workbooks and worksheets . . . . . . . . . . . . . . . . . . . . . . . . . 15
About working with worksheets and workbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Understanding the JBook class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Understanding the BookModelImpl class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Understanding the BookModel interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Getting other components from the BookModel object . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Understanding BookModel functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Understanding the Book interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Understanding the BookImpl class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ii
Creating a workbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Creating a workbook in a Java Swing application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Creating a servlet or an application without a user interface . . . . . . . . . . . . . . . . . . . . . . . . . .21
Resetting a workbook to default settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Grouping workbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Attaching workbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Refreshing data in a workbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Understanding multithreading issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Working with worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Understanding selected worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Understanding the active worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Creating worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Inserting worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Manipulating worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
Manipulating worksheets through the BookModel interface . . . . . . . . . . . . . . . . . . . . . . . .26
Manipulating worksheets through the Sheet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Displaying a specific worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Deleting worksheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Selecting and deselecting a worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Hiding a worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
Chapter 4
Working with worksheet elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
About worksheet elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Working with a worksheet tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Working with rows and columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
Setting the first row or column to display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Hiding or showing a column or row . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Working with column widths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Setting the units of column width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Using automatic column sizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Maintaining column width when importing data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Freezing a row or a column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
Determining the last row or column containing data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Working with headings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
Selecting a column or a row heading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Getting and setting heading dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
Getting and setting heading text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Supplying a multiline column or row heading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
Setting heading font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Turning row or column headings off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Working with a worksheet cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
Inserting cells into a worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
iii
Selecting a cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Making the active cell visible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Selecting an entire row when selecting a cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Making multiple, non-contiguous selections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Enabling users to move the active cell by pressing the Enter key . . . . . . . . . . . . . . . . . . . . 42
Setting cell protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Merging cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Working with a range of cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Getting a cell reference for a range of cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Copying a range of cells from one worksheet to another . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Limiting visible rows and columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Disabling drag-and-drop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Clearing a range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Working with a worksheet outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Working with a worksheet scroll bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Chapter 5
Working with data sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
About data sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Getting a data source object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Casting the Source object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Setting the properties of the data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Creating and setting a query object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Getting a DataRange object and setting its query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Formatting the data range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Generating the workbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Using a file data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Creating a connection to a file data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Using a URL to specify a file location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Using a delimited text file data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Defining a fixed-width text file query . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Setting data range options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Understanding the size of a data range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Understanding the insertion mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Adding field names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Adding row numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Adjusting column widths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Setting the fill-down option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Moving or deleting a data range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Using the data set cache data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Chapter 6
Working with input and output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
剩余243页未读,继续阅读
xz19830617
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 全卷积网络基于voc2012数据集简单pytorch实现
- pycharm的一些介绍-用于更好的学习python
- 基于C++的程序设计大赛天梯赛L2答案(天梯赛)
- 基于python实现的三次样条插值和均值插值法实现
- Python语言教程2-python批量图片大小处理-多文件夹
- Python语言教程1-python批量图片重命名,将后缀某几个不想要的字去除
- Space Combat Kit 太空战斗套件Unity游戏开发插件资源unitypackage C#
- Universal Device Preview 通用设备预览Unity游戏开发插件资源unitypackage
- Paladin Anim Set 圣骑士动画集Unity游戏动作动画插件资源unitypackage
- 计算机财务管理期末考报表部分题目及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0