微软excel文件格式2.1(汉化对照)

上传人:mg****85 文档编号:35209052 上传时间:2018-03-11 格式:DOC 页数:46 大小:230KB
返回 下载 相关 举报
微软excel文件格式2.1(汉化对照)_第1页
第1页 / 共46页
微软excel文件格式2.1(汉化对照)_第2页
第2页 / 共46页
微软excel文件格式2.1(汉化对照)_第3页
第3页 / 共46页
微软excel文件格式2.1(汉化对照)_第4页
第4页 / 共46页
微软excel文件格式2.1(汉化对照)_第5页
第5页 / 共46页
点击查看更多>>
资源描述

《微软excel文件格式2.1(汉化对照)》由会员分享,可在线阅读,更多相关《微软excel文件格式2.1(汉化对照)(46页珍藏版)》请在金锄头文库上搜索。

1、广西柳州畜牧兽医学校 梁桂 错误难免 以原文为准 1 微软Excel 文件格式2.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

2、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).Microsoft Excel 是一种流行的电子表格。它使用的文件格式叫做BIFF (二进制 文件格式) 。这种格式由许多类型的BIFF 记录构成,每个记录都有一个4 字节的头,其中 前两个字节是指定记录类型的操作码,后两个字节指定记

3、录的长度。记录头中的数据值以 低位到高位形式存储 。除了记录头以外的字节就是记录的数据(如图2-1 ) Figure 2-1. BIFF record header.| 记录头 | 记录体 字节编号 | 0 1 2 3 | 0 1 .- 记录内容 | XX | XX | XX | XX | XX | XX | .-| 操作码 | 长度 | 数据Each X represents a hexadecimal digit Two Xs form a byte. The least significant (low) byte of the opcode is byte 0 and the广西柳州畜

4、牧兽医学校 梁桂 错误难免 以原文为准 2 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.每个X 代表一个十六进制数字。两个X 组成一个字节。编号0、1 字节是操作码。编号 3、4 字节是记录长度。 BOF (Beginning of File) 文件开头。 The first record in every spreadsheet is always of the BOF type

5、 (Figure 2-2). 电子表格的第一个记 录总是BOF( 图 2-2) 。 图 2-2. BOF record.| Record Header | Record Body | Byte | 0 1 2 3 | 0 1 2 3 |- Contents | 09 | 00 | 04 | 00 | 02 | 00 | 10 | 00 |-| opcode | length | version | file | | | number | type | 图2-2 。BOF 记录。 |记录头| 记录体| 字节| 0 1 2 3 | 0 1 2 3 | - 目录| 09 | 00 | 04 | 00

6、 | 02 | 00 | 10 | 00 | - |操作码| 长度|版本| 文件| | | | 编号|类型| The first two bytes, arranged with the low byte first, show that the opcode for BOF is广西柳州畜牧兽医学校 梁桂 错误难免 以原文为准 3 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

7、for the initial version of Excel). The last two bytes are the file type. Type 10h is a worksheet file.排在前面的两个字节是BOF 操作码,这里显示是09H 。接下来两个字节表明记录体是4 字节长。记录体的头两 字节是版本号( 2 是Excel 的初始版本) 。后两个字节是文件 类型。10h 表示是电子表格文件。 Relating Spreadsheet Cells to Record Data Bytes A spreadsheet appears on a screen or printou

8、t 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.

9、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

10、, which shows the form of an INTEGER record, illustrates the storage of column and row information. 电子表格的数据记录单元格 电子表格在屏幕上显示或以矩阵形式打印出来,每栏的标识在其顶端,每行都有确定的编 号。 因此,单元格A1 在第一列和第一行。单元格C240 在第3 栏 和第240 行。这种有规律的 编排很容易理解。然而,这样的编排不利于电脑提高信息处理效率。电脑最好的处理方式 是使用二进制数字。因此, Excel 的存储单元标志使用二进制数字。人们可以把二进制 数字理解为十六进制。在系统中

11、第一个编号是 0 ,不是1 。 广西柳州畜牧兽医学校 梁桂 错误难免 以原文为准 4 图2-3 ,显示了一个 INTEGER record(整数形式记录) ,说明了存储的列 和行信息。 Figure 2-3. INTEGER record. 图2-3 。整数纪录。| Record Header | Record Body| 总记录头| 记录机构 字节 Byte | 0 1 2 3 | 0 1 2 3 4 5 6 7 8 |- 值 Value | 02 | 00 | 09 | 00 | 00 | 00 | 02 | 00 | 00 | 00 | 00 | 39 | 00 |-| opcode

12、| length | row | column | rgbAttr | w | |操作码| 长度| 行| 列| rgbAttr |宽| Opcode 2 indicates an integer record. The length bytes show that the record body is 9 bytes long. Row 0 in the body corresponds to spreadsheet row 1. Row 1 corresponds to spreadsheet row 2, and so on. Column 2 corresponds to spreads

13、heet column C. Thus, Figure 2-3 deals with cell C1. The next three bytes, labeled “rgbAttr,“ specify cell attributes (Table 2-3). The final pair of bytes, (labeled “w“) holds the integers value. Here it is 39H or 57 decimal. Thus the record specifies that cell C1 of the spreadsheet contains an integer with the value 57. 操作码2 表示是一个整数记录。长度字节的记录表明记录体是9 字节长。记录体的第0 行 对应于电子表格1 行。第1 行对应 电子表格2 行 ,依此类推。第2 列相对于电子表格C 列。因此,图2-3 显示的单元格是C1 。接下来的三个字节,标示为“ rgbAttr (红绿 蓝属性) ”指定单元格属性(如表2-3 所示 ) 。最后的字节(标记“w” )是无符号整 型值,这里是39H(16 进制)或57 (10 进制) 。因此,该记录确定单元格C1 有一个整 数值57 。 Standard File Record Order

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号