
ADOBE FRAMEMAKER 10
MIF Reference
234
`Number'>"+CR)
SEND PACKET
(vDoc;"<ParaLine <String
`"
+String
([Inventory]Bags;"###")+"'>>>>>"+CR)
SEND PACKET
(vDoc;"<Cell "+vFill+" <CellContent <Para <PgfTag `Body'>"+CR)
SEND PACKET
(vDoc;"<ParaLine <String `"+[Inventory]"'>>>>>"+CR)
SEND PACKET
(vDoc;"<Cell "+vFill+" <CellContent <Para <PgfTag
`Number'>"+CR)
SEND PACKET
(vDoc;"<ParaLine <Conditional <InCondition `Retail'>>"+CR)
SEND PACKET
(vDoc;"<String `"
+String
([Inventory]Price per Bag;"$#,###.00")+"'>")
SEND PACKET
(vDoc;"<Conditional <InCondition `Discount'>>"+CR)
SEND PACKET
(vDoc;"<String `"
+String
(vDiscPrice;"$###,###.00")+"'> "+CR)
SEND PACKET
(vDoc;"<Unconditional> >>>>>"+CR)
MESSAGE
("Generating MIF for "+[Inventory]Name+", Status:
"+[Inventory]".")
NEXT RECORD
([Inventory])
End for
SEND PACKET
(vDoc;">>>"+CR) `End of table.
`Body of page.
SEND PACKET
(vDoc;"<TextFlow <TFTag `A'> <TFAutoConnect Yes>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Heading'> <ParaLine <TextRectID 8>"+CR)
SEND PACKET
(vDoc;"<String `GREEN COFFEE PRICE LIST'> <AFrame
1>>>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Prepared'> <ParaLine <String `To order,
contact:'>>>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Body'> <ParaLine <String
`"+$1»+"'>>>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Body2'>"+CR)
SEND PACKET
(vDoc;"<ParaLine <String `Sales Representative'>>>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Body2'>"+CR)
SEND PACKET
(vDoc;"<ParaLine <String `Primo Coffee Distributors'>>>"+CR)
SEND PACKET
(vDoc;"<Para <PgfTag `Body2'> <ParaLine "+CR)
SEND PACKET
(vDoc;"<String `"
+String
(
Num
($2»);"(###) ###-####")+"'>"+CR)
SEND PACKET
(vDoc;"<ATbl 2> >>>"+CR) `Send the anchor for the table
CLOSE DOCUMENT
(vDoc)
ALERT
("Your MIF file is awaiting your attention.")
Creating several tables
The previous example illustrates how to use a database to create one table instance. Both the
Tbls
and the
TextFlow
statements are written to a single text file. This approach, however, is limited to this simple case. If the document
contains several tables, it may be more convenient to use the database to write the
Tbls
statement to a separate file
and then use a MIF
include
statement to read the file into FrameMaker.
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...