filePro® Output/Screen format
(Versions 3.0 and earlier)

The first 64 bytes of the file are as follows:
(All values are in decimal unless preceded with "0x" for hexadecimal.)


Offset Length Contents
0 2 "0x3E11" - filePro output/screen format magic number
2 4 Checksum of the encoded password (see below)
6 4 Checksum of the screen image
10 2 Width of the form
12 2 Length of the form
14 2 Number of forms across the page
16 2 Number of forms down the page
18 2 Width of page
20 2 Number of lines per page
22 2 Number of lines to print per page
24 2 Size of the extended header
26 2 Extended header type (see below)
28 16 The encoded password (see below)
44 20 Reserved

 

 

The extended header type is one of the following:

Value Type
0 A form or label
1 A report
2 A monochrome screen
3 "Other"
50 Processing-only output
130 A color screen

 

 

The format of extended header types 0, 1, 3, and 50 is as follows:

Offset Length Contents
0 2 Number of head/title lines
2 2 Number of data lines
4 2 Number of break levels
6 5*2 Number of lines per subtotal section
16 2 Flags: Bit 0 Remove unwanted blank lines
Bit 1 Alignment check is needed
18 2 Break level for first form-feed break
20 64 Sort information (see below)
84 2 Number of print codes
86 n*6 Print codes (see below)

 

The sort information is the following 8 bytes repeated 8 times (once for each possible sort key):

Offset Length Contents
0 2 Field number
2 1 Associated field instance (@AF minus 1)
3 1 Flags: bit 0 Subtotal break
4 2 Field length
6 1 "0" for ascending, "1" for descending
7 1 Field type

 

The print codes are:

offset length contents
0 2 Row
2 2 Column
4 2 Print code number

 

The format of extended header types 2 and 130 is:
Offset Length Contents
0 1 Flags: Bit 0 Record deletion allowed
1 1 "0" - reserved
2 2 Number of fields in cursor path
4 n*2 Cursor path. "0xFFFF" means tab stop.

NOTES:

Immediately following the extended header is the image of the form.
In the case of color screens, this is an image of the characters followed by an image of the attributes.

The encoded password and the screen image are check summed with a proprietary algorithm to prevent someone without access to the creation password from changing the format outside of filePro. If someone does this, filePro will not let the format be used by any runtime program -- you will get a checksum error. You can fix this by re-saving the format with the appropriate creation program.

Close This Window