home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / WP / DINFO6.ZIP / 1024 < prev    next >
Text File  |  1993-10-06  |  3KB  |  98 lines

  1.                      WordPerfect Corporation
  2.                 InfoShare Information Fax Service
  3.                          (800) 228-9960
  4.  
  5. Title:    Filename/Path Printed in a Document
  6. Product:  WordPerfect 5.1 for DOS
  7. Number:   1024-5/93
  8.  
  9. Problem
  10. This information describes how to create a macro that lets you
  11. display your document filename and path in a header on every page
  12. of your document.
  13.  
  14. Concept
  15. Macros let you record keystrokes and play them back later. 
  16. Headers let you add text or graphics to every page of a document.
  17. Although the {SYSTEM}variable~ macro command is not available
  18. from the menus of WordPerfect 5.1, you can include the command in
  19. a macro to display the path and filename of the current document. 
  20. When placed in a header, the {SYSTEM}variable~ macro command lets
  21. you display the path and filename of the current document on
  22. every page of the document.
  23.  
  24. Solution
  25. Write a macro to create a header using the {SYSTEM}path~ and
  26. {SYSTEM}name~ commands.
  27.  
  28. 1    Press Home, then Ctrl+F10 to start the macro editor.
  29.  
  30. 2    Enter a name for your macro at the Define Macro prompt, then
  31.      enter a Description for the macro.
  32.  
  33. You are now in the macro editor, and need to create the header.
  34.  
  35. 3    Press End to position the cursor after the {DISPLAY OFF}
  36.      code.
  37.  
  38. 4    Press Format (Shift+F8) to insert a {Format} code in the
  39.      macro.
  40.  
  41. 5    Type the following numbers without spaces between them:   2
  42.      3 1 2.
  43.  
  44.      The numbers you entered above simulate the following
  45.      keystrokes in the Format menu: Page (2), Headers (3), Header
  46.      A (1), Every Page (2).
  47.  
  48.  
  49. 6    Press Ctrl+PageUp to list the macro commands, then scroll
  50.      down the list until {SYSTEM} is highlighted.
  51.  
  52. 7    Press Enter, then type path~. 
  53.  
  54. 8    Press Ctrl+PageUp to list the macro commands.  {SYSTEM}
  55.      should still be highlighted.
  56.  
  57. 9    Press Enter, then type name~. 
  58.  
  59. 10   Press Ctrl+V, then Exit (F7) to insert an {Exit} command.
  60.  
  61. 11   Press Ctrl+V, then Exit (F7) to insert another {Exit}
  62.      command.
  63.  
  64. Your finished macro should look like this:
  65.  
  66. {DISPLAY OFF}{Format}2312{SYSTEM}path~{SYSTEM}name~{Exit}{Exit}
  67.  
  68. 12   Press Exit (F7) once to return to the document editing
  69.      screen.
  70.  
  71. To run the macro you have created:
  72.  
  73. 1    Press Macro (Alt+F10).
  74.  
  75. 2    Type the name of your macro and press Enter.
  76.  
  77. To view the header you have created:
  78.  
  79. 1    Press Print (Shift+F7), then choose View Document (6).
  80.  
  81. See Also
  82. ∙    Macros, Macro Editor in the WordPerfect 5.1 for DOS
  83.      reference manual
  84. ∙    Headers and Footers in the WordPerfect 5.1 for DOS reference
  85.      manual
  86.  
  87.  
  88.  
  89.  
  90.  
  91. WordPerfect Corporation 1993
  92.  
  93. WordPerfect Corporation 
  94. 1555 N. Technology Way 
  95. Orem, UT 84057-2399
  96.  
  97. WordPerfect is a registered trademark of WordPerfect Corporation
  98. within the United States and other countries.