home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR16 / MEMARR.ZIP / README.TXT < prev   
Text File  |  1993-11-03  |  1KB  |  32 lines

  1.    Printing memo fields using the Report Template
  2.  
  3. This example was created to show an alternative way to
  4. print memo fields using the Report Template.  This method
  5. does not handle re-wordwrapping of the memo.   You have
  6. to print the memo with the same number of columns used when
  7. entering the memo.
  8.  
  9. This example prints the memo field as the last line of the
  10. body.  Instead of placing the memo field in the Detail band
  11. I created a new band (CTRL-N) called MEMOBODY.  This MEMOBODY
  12. band has one line that contains a string the width of the memo.
  13. To print this new band I first created  an array of Strings
  14. (in the Data source area) that was defined OVER the memo field.
  15. Example: OVERMEMO    STRING(10),DIM(300),OVER(dum:note)
  16. I used the (Detail Post-Print Code for:Detail) source area to
  17. print the memo.  In this area I first loop backward through
  18. the array over the memo to find the last line of the memo
  19. that contains characters.  After determining the last line of
  20. the memo with data I loop forward through the array and print
  21. each line of the memo.   Page overflow is automatically detected
  22. based on the page length and the Page Footer is printed.
  23.  
  24. Note: You could use the ALLOW attribute on the MEMOBODY band
  25. to allow for a minimal number of lines on the page before starting
  26. a new memo.
  27.  
  28.  
  29.  
  30.  
  31.  
  32.