设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 文件格式 >> [规范资料]Excel文件格式
精品推荐
文件格式点击TOP10
·《IEEE754 学习总结》
·SIP on Mobile Device (运行在移动设备上的SIP协议终端)
·一个8583报文的简单例子
·FTP协议的分析和扩展
·SIP SAP及SDP协议组合应用的研究
·FTP协议的分析和扩展
·SIP IP 电话系统的呼叫路由
·PSF (Portable Sound Format)[可移植声音格式] 规范 v1.5
·网友的VOIP总结
·BitTorrent 协议规范1.0版
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

[规范资料]Excel文件格式

作者: 来源:网络文章 时间:2005-12-17 23:45:37

[规范资料]Excel文件格式(1)


  MICROSOFT Excel FILE FORMAT
Microsoft Excel is a popular spreadsheet.It uses a file format called BIFF (Binary
File Format).There are many types of BIFF records.  Each has a 4 byte header.The
first two bytes are an opcode that specifies the record type.  The second two bytes
specify record length.Header values are stored in byte-reversed form (less significant
byte first).The rest of the record is the data itself (Figure 2-1).
Figure 2-1.BIFF record header.
Record HeaderRecord Body
Byte Number0  123   01 ...
  -----------------------------------
Record Contents XX XX XX XX XX XX ...
  -----------------------------------
  opcode length data

Each X represents a hexadecimal digit
Two X's form a byte.The least significant (low) byte of the opcode is byte 0 and the
most significant (high) byte is byte 1.Similarly, the low byte of the record length
field is byte 2 and the high byte is byte 3.

BOF (Beginning of File)
The first record in every spreadsheet is always of the BOF type (Figure 2-2).
Figure 2-2.BOF record.
Record HeaderRecord Body
Byte   0123 012  3
-----------------------------------------
Contents 09 00 04 00 02 00 10 00
-----------------------------------------
opcode length version file
number type
The first two bytes, arranged with the low byte first, show that the opcode for BOF is
09h.The second two bytes indicate that the record body is 4 bytes long.The first two
bytes of the body are the version number (2 for the initial version of Excel).The last
two bytes are the file type.Type 10h is a worksheet file.

Relating Spreadsheet Cells to Record Data Bytes
A spreadsheet appears on a screen or printout as a matrix of rectangular cells.Each
column is identified by a letter at its top, and each row is identified by a number.
Thus cell A1 is in the first column and the first row.Cell C240 is in the third column
and the 240th row.This scheme identifies cells in a way easily understood by people.
However, it is not particularly convenient for computers, as they do not handle letters
efficiently.They are best at dealing with binary numbers.Thus, Excel stores cell
identifiers as binary numbers, that people can read as hexadecimal.The first number in
the system is 0 rather than 1.
Figure 2-3, which shows the form of an INTEGER record, illustrates the storage of column
and row information.

共3页 9 7 [1] [2] [38 :>

[规范资料]Excel文件格式 相关文章:
[规范资料]Excel文件格式 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com