Adobe FRAMEMAKER 6.0 Manual page 247

Mif reference
Table of Contents

Advertisement

When the document has the appearance you want, save it as a MIF file.
3
4
Edit the MIF file to create a MIF template that you can include in your generated MIF file (see "Including
template files" on page 55). The MIF template used for this example is in the sample file coffee.mif.
5
Use your database to create any custom dialog boxes or report-generating procedures.
Create a database query, or procedure, that extracts data from the database and writes it out into a MIF
6
file. Use a MIF include statement to include the document template in the new document.
The database user can now open a fully formatted report.
The code for the procedure that extracts information from the database and outputs the MIF strings is
shown in this appendix. This procedure is written in the ACIUS 4th DIMENSION command language.
You could use any database query language to perform the same task.
The procedure does the following:
Creates a new document.
7
8
Sends the MIFFile identification line.
Uses include to read in the formatting information stored in the template coffee.mif.
9
Sends the MIF statements to create a table instance.
10
11
In each body cell, sends a field that includes the information extracted from the database.
Creates a text flow that uses the TextRectID from the empty body page in the coffee.mif template.
12
Includes the Atbl statement that places the table instance in the document text flow.
13
Closes the document.
14
In the following example, database commands are shown like this:
preceded by a single back quote (`). Local variables are preceded by a dollar sign ($).
ADOBE FRAMEMAKER 6.0
. Comments are
SEND PACKET
247
Examples

Advertisement

Table of Contents
loading

Table of Contents