home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / ventura / vpapp_7.arc / VPAPP_7.CAP < prev    next >
Text File  |  1989-11-16  |  7KB  |  261 lines

  1. @THUMB TAB = Note  #7<R>
  2. Database Publishing<R>
  3. Page <$R[P#]>
  4.  
  5. @HEAD 1 = TAG 1
  6.  
  7. @HEAD 2 = Alignment
  8.  
  9. @TAB 1 =     Horz. Alignment:    Left<R>
  10.     Vert. Alignment:    Top<R>
  11.     Text Rotation:    None<R>
  12.     Hyphenation:    Off<R>
  13.     Successive Hyphens:    Unlimited<R>
  14.     Overall Width:    Column-Wide<R>
  15.     First Line:    Indent<R>
  16.     Relative Indent:    Off<R>
  17.     In/Outdent Width:    00.00 inches<R>
  18.     In/Outdent Height:    1
  19.  
  20. @HEAD 2 = Spacing
  21.  
  22. @TAB 1 =     Above:        00.00 fractional pts<R>
  23.     Below:                  00.00 fractional pts<R>
  24.     Inter-Line:             12.00 fractional pts<R>
  25.     Inter-Paragraph:        00.00 fractional pts<R>
  26.     Add in Above:           When Not at Column Top<R>
  27.     In From Left (Left Page):    00,00 picas & points<R>
  28.     In From Right (Left Page):    00,00 picas & points<R>
  29.     In From Left (Right Page):     00,00 picas & points<R>
  30.     In From Right (Right Page):    00,00 picas & points
  31.  
  32. @HEAD 2 = Breaks
  33.  
  34. @TAB 1 =     Page Break:        No<R>
  35.     Column Break:           No<R>
  36.     Line Break:             Before<R>
  37.     Next Y Position:        Normal<R>
  38.     Allow Within:           Yes<R>
  39.     Keep With Next:         No
  40.  
  41. @HEAD 2 = Tab Settings
  42.  
  43. @TAB 1 =     Leader Char:       46<R>
  44.     Leader Spacing:         2<R>
  45.     Auto-Leader:            Off
  46.  
  47. @HEAD 2 = Special Effects
  48.  
  49. @TAB 1 =     Special Effect:         None
  50.  
  51. @HEAD 1 = TAG 2<R>
  52. <P10M>(same as TAG 1, except for the following)<P255D>
  53.  
  54. @HEAD 2 = Alignment
  55.  
  56. @TAB 1 =     Relative Indent:        On
  57.  
  58. @HEAD 2 = Spacing
  59.  
  60. @TAB 1 =     In From Right (Left Page):        05,00 picas & points<R>
  61.     In From Right (Right Page):       05,00 picas & points
  62.  
  63. @HEAD 2 = Breaks
  64.  
  65. @TAB 1 =     Line Break:        No<R>
  66.     Keep With Next:         Yes
  67.  
  68. @HEAD 2 = Tab Settings
  69.  
  70. @TAB 1 =     Leader Spacing:    4<R>
  71.     Auto-Leader:    On
  72.  
  73. @HEAD 2 = Special Effects
  74.  
  75. @TAB 1 =     Special Effect:    Bullet<R>
  76.     Bullet Char:    44<R>
  77.     Indent After Bullet:    00,06 picas & points
  78.  
  79. @HEAD 1 = TAG 3<R>
  80. <P10M>(same as TAG 1, except for the following)<P255D>
  81.  
  82. @HEAD 2 = Alignment
  83.  
  84. @TAB 1 =     Horz. Alignment:    Right
  85.  
  86. @HEAD 2 = Breaks
  87.  
  88. @TAB 1 =     Line Break:    After
  89.  
  90. @HEAD 1 = Application code
  91.  
  92. The following shows the dBase III  label code which creates the text. 
  93. (The shaded text shows strategy number two.) The label is stored in 
  94. a file called <F2B>EXAMP1.LBL<F255D><$&Frame 2[v]><R>
  95.  
  96.  
  97. @TAB 2 = <F2BU>Label options       Contents<F255D>
  98.  
  99. @TAB 2 = <F1M>Predefined size    3 1/2 x 15/16 by 1<R>
  100. Label width:    60<R>
  101. Label height:    3<R>
  102. Left margin:    0<R>
  103. Lines between labels:    0<R>
  104. Spaces between labels:    0<R>
  105. Labels across page:    1<F255D>
  106.  
  107.  
  108.  
  109. @TAB 1 = Once this is created, you type the following from the dBase 
  110. prompt:<$&Frame 3[v]><R>
  111. <R>
  112. <F2>label form examp1 to file data.txt
  113.  
  114. @TAB 1 = 
  115.  
  116. @TAB 1 = This code takes the three fields (defined in the label program) 
  117. from the currently opened database and produces the following (the 
  118. shaded text shows the results from strategy number two):
  119.  
  120.  
  121.  
  122. @@TAG 1 = Allard
  123.  
  124. @@TAG 2 = Hank
  125.  
  126. @@TAG 3 = 617-264-8394
  127.  
  128. @@TAG 1 = Altman
  129.  
  130. @@TAG 2 = Rich
  131.  
  132. @@TAG 3 = 415-967-9275
  133.  
  134.  
  135.  
  136. @HEAD 1 = Sample
  137.  
  138. The following screen snapshot shows what the finished phone directory 
  139. looks like after the file <B>DATA.TXT<D> is loaded into a chapter 
  140. and formatted with the style sheet described on the preceeding page. 
  141. Note how the three fields have all been combined onto one line. Also 
  142. notice the leader characters between the first name and the phone 
  143. number. The style sheet settings shown on the previous page make this 
  144. possible. Also notice how the first occurrence of a last name has 
  145. been automatically copied into the header using the <B>1st Match<D> 
  146. feature in the <B>Headers & Footers<D> option.
  147.  
  148. @TAB 1 = <F2BU>Label contents (second strategy) <F1M>
  149.  
  150. @TAB 1 = <F1P8M%-6>1:  <169>@TAG 1 = <170>+Last_name+chr(9)+first_name+chr(9)+phone<P255%0>
  151.  
  152. @Z_BOXTEXT = Text which results from code for strategy two (see code 
  153. in shaded box above). Bullets (<195>) represent tabs.
  154.  
  155. @TAB 1 = Allard<195>Hank<195>617-264-8394
  156.  
  157. @TAB 1 = Altman<195>Rich<195>415-967-9275
  158.  
  159. @TAB 1 = <F2BU>Label contents (first strategy)<F1M>
  160.  
  161. @TAB 1 = <F1P8M>1:  <169>@TAG 1 = <170>+Last_name<R>
  162. 2:  <169>@TAG 2 = <170>+first_name<R>
  163. 3:  <169>@TAG 3 = <170>+phone<F2P255>
  164.  
  165. @HEAD 1 = Examples <197> Tables
  166.  
  167. Many of you who have purchased the Professional Extension have asked 
  168. for more information on how to directly create a table from your database. 
  169. This turns out to be quite simple. This section shows you how.
  170.  
  171. The structure of a Ventura Publisher Professional Extension table 
  172. is described in Appendix A of the Professional Extension Reference 
  173. Guide. An updated version of the information in Appendix A is provided 
  174. below. You can also create a table in Ventura Publisher, save the 
  175. chapter, look at the resulting text in your wordprocessor, and figure 
  176. most of it out yourself.
  177.  
  178. @TAB 1 = The file TABLHEAD.TXT contains the <B>@Z_TBL_BEG = <D>statement 
  179. and other table header information. The file TABLEND.TXT contains 
  180. the <B>@Z_TBL_END =<D> statement. The EXAMP2 files contain these examples.
  181.  
  182. @TAB 1 = <F2BU>Label contents<F255D><R>
  183. <F1>trim(LAST_NAME)+", <<$&FR"+ltrim(str(recno()))+"[-]>>"
  184.  
  185. @Z_BOXTEXT = Increment this counter (in HEX) for each file added.
  186.  
  187. @Z_BOXTEXT = Duplicate this code, using your word processor's cut 
  188. and paste feature, for each frame you wish to create. Then update 
  189. the frame anchor name.
  190.  
  191. @HEAD 1 = Typical chapter file
  192.  
  193. @Z_BOXTEXT = Increment this counter (in HEX) for each frame added.
  194.  
  195. @TABLE 2 = <F2B>Options<F1P8M><R>
  196. Page title<F255P255D>
  197.  
  198. @TABLE 2 = <F1P8M>Page width (positions)        500<F255P255D>
  199.  
  200. @TABLE 2 = <F1P8M>Left margin        0<F255P255D>
  201.  
  202. @TABLE 2 = <F1P8M>Right margin        0<F255P255D>
  203.  
  204. @TABLE 2 = <F1P8M>Lines per page        500<F255P255D>
  205.  
  206. @TABLE 2 = <F1P8M>Double space report        No<F255P255D>
  207.  
  208. @TABLE 2 = <F1P8M>Page eject before printing    No<F255P255D>
  209.  
  210. @TABLE 2 = <F1P8M>Page eject after printing    No<F255P255D>
  211.  
  212. @TABLE 2 = <F1P8M>Plain page        Yes<F255P255D>
  213.  
  214. @TAB 1 = 
  215.  
  216. @TABLE 2 = <F2B>Groups<F1P8M><R>
  217. Group on        trim(Composer)+chr(13)+chr(10)<F255P255D>
  218.  
  219. @TABLE 2 = <F1P8M>Group heading        @TITLE =<F255P255D>
  220.  
  221. @TABLE 2 = <F1P8M>Summary report only        No<F255P255D>
  222.  
  223. @TABLE 2 = <F1P8M>Page eject after group        No<F255P255D>
  224.  
  225. @TABLE 2 = 
  226.  
  227. @TAB 1 = 
  228.  
  229. @TABLE 2 = <F2B>Columns<F255D><R>
  230. <F1P8M>Contents    trim(Title)+chr(9)+trim(number)+"<F255P255D><R>
  231. <F1M>Heading<R>
  232. Width            67<F255D>
  233.  
  234. @Z_CAPTION = 
  235.  
  236. @TABLE 2 = \0D\0A\0D\0A\0D\0A\0D\0A=
  237.  
  238. @TABLE 2 = \0D\0A\0D\0A=\0D\0A\0D\0A
  239.  
  240. @TABLE 2 = \0D\0A=
  241.  
  242. @TABLE 2 = <R>
  243. \0D\0A\0D\0A** @=\0D\0A\0D\0A@
  244.  
  245. @TABLE 2 = ** @=@
  246.  
  247. @TABLE 2 = \20\20=
  248.  
  249. @TABLE 2 = \\E
  250.  
  251. Copyright <189> 1989, Ventura Software, Inc. All rights reserved. 
  252. Reproduction, other than electronic distribution on computer bulletin 
  253. boards, is prohibited.
  254.  
  255. All example programs provided with this application are Copyright 
  256. 1989, John Meyer. They are provided as is, with no warranty or support 
  257. of any kind. You may use or modify them for your own use, but you 
  258. cannot incorporate any of these programs into a program you intend 
  259. to sell.
  260.  
  261.