home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
ventura
/
vpapp_7.arc
/
VPAPP_7.CAP
< prev
next >
Wrap
Text File
|
1989-11-16
|
7KB
|
261 lines
@THUMB TAB = Note #7<R>
Database Publishing<R>
Page <$R[P#]>
@HEAD 1 = TAG 1
@HEAD 2 = Alignment
@TAB 1 = Horz. Alignment: Left<R>
Vert. Alignment: Top<R>
Text Rotation: None<R>
Hyphenation: Off<R>
Successive Hyphens: Unlimited<R>
Overall Width: Column-Wide<R>
First Line: Indent<R>
Relative Indent: Off<R>
In/Outdent Width: 00.00 inches<R>
In/Outdent Height: 1
@HEAD 2 = Spacing
@TAB 1 = Above: 00.00 fractional pts<R>
Below: 00.00 fractional pts<R>
Inter-Line: 12.00 fractional pts<R>
Inter-Paragraph: 00.00 fractional pts<R>
Add in Above: When Not at Column Top<R>
In From Left (Left Page): 00,00 picas & points<R>
In From Right (Left Page): 00,00 picas & points<R>
In From Left (Right Page): 00,00 picas & points<R>
In From Right (Right Page): 00,00 picas & points
@HEAD 2 = Breaks
@TAB 1 = Page Break: No<R>
Column Break: No<R>
Line Break: Before<R>
Next Y Position: Normal<R>
Allow Within: Yes<R>
Keep With Next: No
@HEAD 2 = Tab Settings
@TAB 1 = Leader Char: 46<R>
Leader Spacing: 2<R>
Auto-Leader: Off
@HEAD 2 = Special Effects
@TAB 1 = Special Effect: None
@HEAD 1 = TAG 2<R>
<P10M>(same as TAG 1, except for the following)<P255D>
@HEAD 2 = Alignment
@TAB 1 = Relative Indent: On
@HEAD 2 = Spacing
@TAB 1 = In From Right (Left Page): 05,00 picas & points<R>
In From Right (Right Page): 05,00 picas & points
@HEAD 2 = Breaks
@TAB 1 = Line Break: No<R>
Keep With Next: Yes
@HEAD 2 = Tab Settings
@TAB 1 = Leader Spacing: 4<R>
Auto-Leader: On
@HEAD 2 = Special Effects
@TAB 1 = Special Effect: Bullet<R>
Bullet Char: 44<R>
Indent After Bullet: 00,06 picas & points
@HEAD 1 = TAG 3<R>
<P10M>(same as TAG 1, except for the following)<P255D>
@HEAD 2 = Alignment
@TAB 1 = Horz. Alignment: Right
@HEAD 2 = Breaks
@TAB 1 = Line Break: After
@HEAD 1 = Application code
The following shows the dBase III label code which creates the text.
(The shaded text shows strategy number two.) The label is stored in
a file called <F2B>EXAMP1.LBL<F255D><$&Frame 2[v]><R>
@TAB 2 = <F2BU>Label options Contents<F255D>
@TAB 2 = <F1M>Predefined size 3 1/2 x 15/16 by 1<R>
Label width: 60<R>
Label height: 3<R>
Left margin: 0<R>
Lines between labels: 0<R>
Spaces between labels: 0<R>
Labels across page: 1<F255D>
@TAB 1 = Once this is created, you type the following from the dBase
prompt:<$&Frame 3[v]><R>
<R>
<F2>label form examp1 to file data.txt
@TAB 1 =
@TAB 1 = This code takes the three fields (defined in the label program)
from the currently opened database and produces the following (the
shaded text shows the results from strategy number two):
@@TAG 1 = Allard
@@TAG 2 = Hank
@@TAG 3 = 617-264-8394
@@TAG 1 = Altman
@@TAG 2 = Rich
@@TAG 3 = 415-967-9275
@HEAD 1 = Sample
The following screen snapshot shows what the finished phone directory
looks like after the file <B>DATA.TXT<D> is loaded into a chapter
and formatted with the style sheet described on the preceeding page.
Note how the three fields have all been combined onto one line. Also
notice the leader characters between the first name and the phone
number. The style sheet settings shown on the previous page make this
possible. Also notice how the first occurrence of a last name has
been automatically copied into the header using the <B>1st Match<D>
feature in the <B>Headers & Footers<D> option.
@TAB 1 = <F2BU>Label contents (second strategy) <F1M>
@TAB 1 = <F1P8M%-6>1: <169>@TAG 1 = <170>+Last_name+chr(9)+first_name+chr(9)+phone<P255%0>
@Z_BOXTEXT = Text which results from code for strategy two (see code
in shaded box above). Bullets (<195>) represent tabs.
@TAB 1 = Allard<195>Hank<195>617-264-8394
@TAB 1 = Altman<195>Rich<195>415-967-9275
@TAB 1 = <F2BU>Label contents (first strategy)<F1M>
@TAB 1 = <F1P8M>1: <169>@TAG 1 = <170>+Last_name<R>
2: <169>@TAG 2 = <170>+first_name<R>
3: <169>@TAG 3 = <170>+phone<F2P255>
@HEAD 1 = Examples <197> Tables
Many of you who have purchased the Professional Extension have asked
for more information on how to directly create a table from your database.
This turns out to be quite simple. This section shows you how.
The structure of a Ventura Publisher Professional Extension table
is described in Appendix A of the Professional Extension Reference
Guide. An updated version of the information in Appendix A is provided
below. You can also create a table in Ventura Publisher, save the
chapter, look at the resulting text in your wordprocessor, and figure
most of it out yourself.
@TAB 1 = The file TABLHEAD.TXT contains the <B>@Z_TBL_BEG = <D>statement
and other table header information. The file TABLEND.TXT contains
the <B>@Z_TBL_END =<D> statement. The EXAMP2 files contain these examples.
@TAB 1 = <F2BU>Label contents<F255D><R>
<F1>trim(LAST_NAME)+", <<$&FR"+ltrim(str(recno()))+"[-]>>"
@Z_BOXTEXT = Increment this counter (in HEX) for each file added.
@Z_BOXTEXT = Duplicate this code, using your word processor's cut
and paste feature, for each frame you wish to create. Then update
the frame anchor name.
@HEAD 1 = Typical chapter file
@Z_BOXTEXT = Increment this counter (in HEX) for each frame added.
@TABLE 2 = <F2B>Options<F1P8M><R>
Page title<F255P255D>
@TABLE 2 = <F1P8M>Page width (positions) 500<F255P255D>
@TABLE 2 = <F1P8M>Left margin 0<F255P255D>
@TABLE 2 = <F1P8M>Right margin 0<F255P255D>
@TABLE 2 = <F1P8M>Lines per page 500<F255P255D>
@TABLE 2 = <F1P8M>Double space report No<F255P255D>
@TABLE 2 = <F1P8M>Page eject before printing No<F255P255D>
@TABLE 2 = <F1P8M>Page eject after printing No<F255P255D>
@TABLE 2 = <F1P8M>Plain page Yes<F255P255D>
@TAB 1 =
@TABLE 2 = <F2B>Groups<F1P8M><R>
Group on trim(Composer)+chr(13)+chr(10)<F255P255D>
@TABLE 2 = <F1P8M>Group heading @TITLE =<F255P255D>
@TABLE 2 = <F1P8M>Summary report only No<F255P255D>
@TABLE 2 = <F1P8M>Page eject after group No<F255P255D>
@TABLE 2 =
@TAB 1 =
@TABLE 2 = <F2B>Columns<F255D><R>
<F1P8M>Contents trim(Title)+chr(9)+trim(number)+"<F255P255D><R>
<F1M>Heading<R>
Width 67<F255D>
@Z_CAPTION =
@TABLE 2 = \0D\0A\0D\0A\0D\0A\0D\0A=
@TABLE 2 = \0D\0A\0D\0A=\0D\0A\0D\0A
@TABLE 2 = \0D\0A=
@TABLE 2 = <R>
\0D\0A\0D\0A** @=\0D\0A\0D\0A@
@TABLE 2 = ** @=@
@TABLE 2 = \20\20=
@TABLE 2 = \\E
Copyright <189> 1989, Ventura Software, Inc. All rights reserved.
Reproduction, other than electronic distribution on computer bulletin
boards, is prohibited.
All example programs provided with this application are Copyright
1989, John Meyer. They are provided as is, with no warranty or support
of any kind. You may use or modify them for your own use, but you
cannot incorporate any of these programs into a program you intend
to sell.