The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5 Worksheet/Workbook Records<br />
5.58.3 Hyperlink to a Local <strong>File</strong><br />
<strong>The</strong>se data fields are for links to files on local drives. <strong>The</strong> path of the file can be complete with drive letter (absolute) or<br />
relative to the location of the workbook. <strong>The</strong> lower 9 bits of the option flags field must be 0.x00x.xxx1 2 . <strong>The</strong> GUID<br />
could be used to distinguish a URL from a file link.<br />
Offset Size Contents<br />
0 16 GUID of <strong>File</strong> Moniker:<br />
03 H 03 H 00 H 00 H 00 H 00 H 00 H 00 H C0 H 00 H 00 H 00 H 00 H 00 H 00 H 46 H<br />
(00000303-0000-0000-C000-000000000046)<br />
16 2 Directory up-level count. Each leading “..\” in the file link is deleted and increases this<br />
counter.<br />
18 4 Character count of the shortened file path and name, including trailing zero byte (sl)<br />
22 sl Character array of the shortened file path and name in 8.3-DOS-format. This field can be<br />
filled with a long file name too. No Unicode string header, always 8-bit characters, zeroterminated.<br />
22+sl 24 Unknown byte sequence:<br />
FF H FF H AD H DE H 00 H 00 H 00 H 00 H<br />
00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H<br />
00 H 00 H 00 H 00 H 00 H 00 H 00 H 00 H<br />
46+sl 4 Size of the following file link field including string length field and additional data field<br />
(sz). If sz is zero, nothing will follow (except a text mark).<br />
[50+sl] 4 (optional) Size of character array of the extended file path and name (xl). <strong>The</strong>re are xl/2<br />
characters in the following string.<br />
[54+sl] 2 (optional) Unknown byte sequence: 03 H 00 H<br />
[56+sl] xl (optional) Character array of the extended file path and name (xl), no Unicode string<br />
header, always 16-bit characters, not zero-terminated<br />
5.58.4 Hyperlink to a <strong>File</strong> with UNC (Universal Naming Convention) Path<br />
<strong>The</strong>se data fields are for UNC paths containing a server name (for instance “\\server\path\file.xls”). <strong>The</strong> lower 9 bits of<br />
the option flags field must be 1.x00x.xx11 2 .<br />
Offset Size Contents<br />
0 4 Character count of the UNC, including trailing zero word (fl)<br />
4 2∙fl Character array of the UNC, no Unicode string header, always 16-bit characters, zeroterminated.<br />
5.58.5 Hyperlink to the Current Workbook<br />
In this case only the text mark field is present (optional with description).<br />
Example: <strong>The</strong> URL “#Sheet2!B1:C2” refers to the given range in the current workbook.<br />
<strong>The</strong> lower 9 bits of the option flags field must be 0.x00x.1x00 2 .<br />
184