home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / codebase.zip / SUMMARY.TXT < prev    next >
Text File  |  1993-01-18  |  12KB  |  280 lines

  1. **************************************************************
  2.  
  3. INSTRUCTIONS ON RUNNING THE WORKING MODEL OF CODEREPORTER
  4.  
  5. **************************************************************
  6. This demo disk contains a working demonstration model of CodeReporter. 
  7. Listed  below is a description of how some of the features of CodeReporter
  8. can be utilized.  It is important to note that the enclosed CodeReproter
  9. working demonstration model is the dBASE IV (.MDX) version.  If you require
  10. the demonstration model compatible with dBASE III Plus, Clipper, or FoxPro
  11. contact Sequiter Software.  The working demonstration model is limited
  12. to opening databases with a maximum of 400 records.  
  13.  
  14. CodeReporter is a Windows application.  As such, Microsoft
  15. Windows 3.x must be properly installed and running before
  16. CodeReporter is initiated.  
  17.  
  18. **************************************************************
  19. STARTING CODEREPORTER
  20.  
  21. CodeReporter may be started from the DOS command line by typing
  22. WIN CREP_MDX from the CodeReporter root directory.  However, since
  23. Windows applications are rarely initiated from the DOS command
  24. line, the following options are recommended.
  25.  
  26. Once Windows has begun, invoke the File Manager utility by
  27. double clicking on its icon (usually found in the "Main" program
  28. group).  
  29.  
  30. Use File Manager to copy the contents of the demo diskette
  31. into a directory on your local hard drive.  Once the file list 
  32. for the CodeReporter directory is displayed, scroll through the list 
  33. of files until the file CREP_MDX.EXE is located.  
  34.  
  35. CodeReporter is invoked by double clicking on this file name.
  36.  
  37. CodeReporter may be invoked using the Windows Program Manager
  38. menu options.  Select File | Run.  Windows displays a dialog box
  39. in which you may enter the drive, path, and executable name for
  40. CodeReporter.
  41.  
  42. Windows uses icons to give users rapid access to commonly used
  43. applications.  The CodeReporter icon may be added to any
  44. existing group and may be executed, like any other Windows
  45. application, with a double click.  This is the prefered method
  46. of invoking CodeReporter.
  47.  
  48. Please see the Windows User's Guide for more information
  49.  
  50. **************************************************************
  51. CREATING A REPORT
  52.  
  53. CodeReporter loads only one report at a time.  As a result, when
  54. CodeReporter is invoked you must choose which existing report to load or
  55. create a new report.
  56.  
  57. To retrieve an existing report use the Files, Directories, and
  58. Drives listboxes to select the filename of the report file. 
  59. Then click on OK.
  60.  
  61. To start a new report click on the New Report button.  This
  62. brings up the Select Master Database dialog.  Use the Files,
  63. Directories, and Drives listboxes to select the desired
  64. datafile.  This datafile will serve as the report master
  65. datafile.
  66.  
  67. When CodeReporter is running, a previously created report can be
  68. accessed by selecting Open from the File menu.  A new report can
  69. be started by selecting File | New.
  70.  
  71. To save a report select Save from the file menu.  If the report
  72. is a new report which has not been given a name you are prompted
  73. for a name.  If the report already has a name the report file is
  74. updated.
  75.  
  76. To save a report under a new file name select Save As from the
  77. File menu.
  78.  
  79. **************************************************************
  80. REPORT OBJECTS
  81.  
  82. The actual content of a report is made up of various output objects.  The 
  83. method for creating an output object is initially the same regardless of
  84. the object type; label, expression, or total.
  85.  
  86. The simplest way to create an object is to position the mouse
  87. pointer at the position where you want the new object and click
  88. on the right mouse button.  This brings up the Create Object
  89. dialog, which allows you to create a label, expression, or
  90. total.  When the Create Object dialog initially appears, its
  91. default setting is for the creation of a label object.  This is
  92. indicated by by the Label radiobutton.  Enter the text for your
  93. label object by typing it into the Object Text edit box.  
  94.  
  95. To create an expression output object either select the
  96. Expression radiobutton and enter the expression into the Object
  97. Text edit box, or click on the Easy Expr. button and use the
  98. Expression Entry dialog to enter the expression.
  99.  
  100. Creating a Total type output object varies slightly from
  101. creating and Expression or Label.  In order to create the output
  102. object a total must first be defined.
  103.  
  104. The Totals dialog will appear.  In order to define a total the
  105. name must be specified, an expression must be provided, a reset
  106. group must be set, and the total type must be specified.  
  107.  
  108. To start the definition of a new total click on the Create
  109. button.  A prompt appears asking for a name for the new total. 
  110. When a name has been provided the Expression Entry dialog
  111. appears.  
  112.  
  113. The total expression is evaluated for each record and the
  114. resulting value is used in keeping the total current.  The
  115. expression often consists simply of one of the fields in the
  116. datafile, but can be more complex and even be dependant on the
  117. contents of various fields.
  118.  
  119. A total is associated with a reset group, and resets itself each 
  120. time the reset group resets.  To select a reset group for the total 
  121. click on the desired group from the list of groups shown in the Reset 
  122. Group listbox.
  123.  
  124. Finally select the desired type from the Type listbox.
  125.  
  126. Since the desired total is defined, the Total type output
  127. object can be created by clicking on the Total Lookup button,
  128. and selecting the desired total from the displayed list. 
  129. Alternatively, the user could select the Total radiobutton and
  130. enter the name of the defined total into the Object Text edit
  131. box.
  132.  
  133. More than one output object can use the same defined total, and
  134. a defined total can also be used in the expression for an
  135. expression object or another total.
  136.  
  137. A calculation is similar to a total in that it must be defined
  138. before it can be used in an output object.  Unlike a total there
  139. is no output object specifically for calculations.  Instead a
  140. calculation is used as the expression, or part of the
  141. expression, for an expression type output object.
  142.  
  143. **************************************************************
  144. MODIFYING OBJECTS
  145.  
  146. To modify an already created object place the mouse pointer on
  147. the object to be modified and click on the right hand mouse
  148. button.  The Modify Object dialog will appear.  This dialog is
  149. identical to the Create Object dialog, and allows you to change
  150. any of the characteristics of the object.
  151.  
  152. To select an output object click on it with the left mouse
  153. button.
  154.  
  155. **************************************************************
  156. FORMATING OUTPUT
  157.  
  158. CodeReporter provides facilities for formatting output objects
  159. in a variety of ways.................
  160.  
  161. Your custom report can take advantage of the display
  162. capabilities of Windows through the use of styles.  Each output
  163. object in a report can have a user defined style associated with
  164. it.  A style contains information defining a font, font size,
  165. colour, and options such as bold, underline, italic, etc.  By
  166. using various styles output objects such as summary data, or
  167. column headings can be emphasized.
  168.  
  169. **************************************************************
  170. STYLES
  171.  
  172. To create a style select Styles from the main menu.  The styles
  173. dialog box will appear.  The currently created styles will be
  174. displayed in the Style Selected listbox, with the currently
  175. selected style hilighted.
  176.  
  177. There will always be at least one style, Plain Text, defined. 
  178. This style is created at the time of original report creation,
  179. and uses the system defaults.  This style cannot be deleted, but
  180. may be modified to suit individual needs. 
  181.  
  182. To create a new style click on the Create button and enter a
  183. name for the new style.  When a new style is created it is a
  184. copy of the currently selected style, it must then be modified
  185. to the desired appearance.  
  186.  
  187. To modify a style, make it the current style by selecting it in
  188. the Style Selected listbox.  Next click on the modify button. 
  189. The Fonts dialog will appear.  Select the desired font, font
  190. size, color, etc. and click on OK.
  191.  
  192. The style for a given object can be selected from within either
  193. the object creation dialog or the object edit dialog.
  194.  
  195. **************************************************************
  196. DOS REPORTING
  197.  
  198. A report created with CodeReporter can also be printed or
  199. displayed from a DOS application through the use of the report
  200. functions in CodeBase 5.0.  If a report is intended for use with
  201. DOS the various styles in the report may be defined for use with
  202. DOS.  Styles defined for DOS only affect printed output of  a
  203. report in DOS, screen output will be in plain text.
  204.  
  205. A style for DOS is defined by specifying the printer escape
  206. codes to be sent to the printer.  To define a style for DOS
  207. click on the For DOS button.  
  208.  
  209. Pre string control codes are sent to the printer before an
  210. objects contents and post string control codes are sent after an
  211. objects contents.  The codes are entered in the format \xhh \xhh
  212. where hh represents a to digit hexadecimal number.  For example:
  213. if the code for setting bold printing is ESC "G" it would be
  214. entered as \x1B \x47.
  215.  
  216. Display Once is a flag which can be set for a given object. 
  217. This allows the object to be associated with a group in the
  218. report so that it is only displayed when that group resets (
  219. similar to the  relation between a total and its reset group ). 
  220. This option can be set from within the create object dialog or
  221. the edit object dialog.  
  222.  
  223. Object alignment actually falls into two different categories. 
  224. The first is the alignment of the object contents within the
  225. objects area.  The second is the alignment of various output
  226. objects with each other in the areas of the report.
  227.  
  228. The internal alignment of an output objects' contents can be
  229. specified at the time of object creation, or can be set later by
  230. modifying the object.  The Alignment listbox in the Create
  231. Object and Edit Object dialogs allows the user to set the
  232. alignment for the contents of the object. 
  233.  
  234. The alignment of objects within the various areas of a report
  235. definition is controlled by the choices in the Align menu.  The
  236. members of the Align menu are: Left Justify, Right Justify,
  237. Center Justify, Vertical Movement, and Sensitivity.
  238.  
  239. At various points in the creation of a report, CodeReporter
  240. requires the user to enter an expression.  Expression entry is
  241. facilitated through the Expression Entry dialog.
  242.  
  243. A demonstration report, DEMO.REP, has been included to give you an 
  244. illustration of how a CodeReporter report may look.  The included data
  245. and dBASE IV indexes where included to allow you experiment with 
  246. the demonstration report.
  247.  
  248. An expression can be typed directly into the edit area or
  249. entered through the use of the listboxes.  The Fields list
  250. contains all the fields in all the datafiles in the reports
  251. relation.  Functions contains a list of all the predefined
  252. CodeWindows functions and Operators contains the various
  253. operator symbols which can be used in creating an expression.
  254. Calculations and Totals contain any calculations and totals
  255. which the user has previously defined.
  256.  
  257. To transfer data from the listboxes to the expression entry area
  258. simply double click on the selection in the listbox and it will
  259. be added to the new expression.
  260.  
  261. As discussed in the concepts chapter CodeReporter allows the
  262. specification of queries and sort orders on the extended
  263. datafile produced by the reports relation.  
  264.  
  265. To specify a sort expression select Sort from the Database menu.  The 
  266. Enter Sort expression entry dialog will appear.  Enter the
  267. sort expression as described in Expression Entry previously.
  268.  
  269. To specify a query expression select Query from the main menu. 
  270. When the Enter Query expression entry dialog appears enter the
  271. query expression.
  272.  
  273. Developed with CodeBase 5.0, the LAUNCH_D.EXE is an example of a utility
  274. to run your report under DOS.  Typing LAUNCH_D from the DOS prompt will 
  275. give you an overview of the various paramaters that you can use with
  276. the utility.  For example, typing in the command LAUNCH_D DEMO from the DOS
  277. prompt will show the contents of your report on your screen.  The C source 
  278. code for the LAUNCH_D program is also included.
  279.  
  280.