home *** CD-ROM | disk | FTP | other *** search
/ Windoware / WINDOWARE_1_6.iso / misctext / ami20tn / ap000124.txt < prev    next >
Text File  |  1992-01-02  |  5KB  |  93 lines

  1. TITLE:   Printing a Shaded Address on an Envelope
  2. PRODUCT: Ami Pro 2.0
  3. DATE:    31-Oct-1991
  4.  
  5. PROBLEM: 
  6.  
  7. How can address lines from a letter be easily printed on an envelope?
  8.  
  9. SOLUTION: 
  10.  
  11. A quick way to get a simple macro that will copy shaded text (or allow you to 
  12. shade text) to an envelope style sheet and print it is to use the example in 
  13. the macro documentation.  If the on-screen macro documentation has been 
  14. installed, you can actually copy the example from the help text and paste it 
  15. into Ami Pro.  If the on-screen documentation has not been installed, just 
  16. type in the macro in an untitled window and save it to a file name with an 
  17. extension of .SMM.
  18.  
  19. NOTE:  A macro named ENVELOPE.SMM was shipped with Ami Pro releas 1.2.  This 
  20. macro printed shaded lines on an envelope.  Due to the many changes and 
  21. enhancements in the Ami Pro release 2.0 program and macro language, certain 
  22. commands in the ENVELOPE.SMM macro have changed and many of the commands used 
  23. in this macro are no longer necessary.  Rather than modifying ENVELOPE.SMM to 
  24. be compatible with Ami Pro release 2.0, follow the steps below to create a new 
  25. macro.
  26.  
  27. CREATING AN ENVELOPE MACRO FROM THE MACRO DOCUMENTATION EXAMPLE
  28.  
  29.   1. In Ami Pro choose Help / Macro Doc.
  30.   2. Select Macro Functions F - G.
  31.   3. Choose FilePrint from the list of functions.
  32.   4. Choose Edit / Copy.
  33.   5. Press ALT + F4 to close the macro documentation.
  34.   6. In an untitled window, choose Edit / Paste.
  35.   7. Delete all of the lines except the following:
  36.      FUNCTION Example()
  37.      WHILE CurShade$() = ""
  38.      UserControl("Select the text to print and click on Resume...")
  39.      WEND
  40.      Copy()
  41.      New("~ENVELOP.STY", 1, 0)
  42.      Paste()
  43.      FilePrint(1, 1, 9999, 1537)
  44.      FileChanged(1, 0)
  45.      FileClose()
  46.      END FUNCTION
  47.   8. Choose File / Save.
  48.   9. Select Ami Pro Macro as the File Type.
  49.  10. Specify the desired name for the macro with an extension of .SMM 
  50.      (ENV.SMM, for example).
  51.  11. Choose OK.
  52.  12. Choose File / Close to close the macro file.
  53.  
  54. HOW TO CREATE THE ENVELOPE MACRO IF MACRO DOCUMENTATION IS NOT INSTALLED
  55.  
  56.  1. In an untitled window, type the macro commands listed in Step 7 above.  
  57.     Make sure that each command is on a separate line just as the above 
  58.     example.
  59.  2. Choose File / Save.
  60.  3. Select Ami Pro Macro as the File Type.
  61.  4. Specify the desired name for the macro with an extension of .SMM (ENV.SMM, 
  62.     for example).
  63.  5. Choose OK.
  64.  6. Choose File / Close to close the macro file.
  65.  
  66. NOTE: The style sheet name in the line that reads New("~ENVELOP.STY", 1, 0)
  67. can be changed to another style sheet name if another style sheet is being 
  68. used to print envelopes.
  69.  
  70. HOW TO USE THE ENVELOPE MACRO
  71.  
  72.  1. Make the printer that will print the envelope the default Windows printer 
  73.     in the Printers section of the Windows Control Panel (can be accessed in 
  74.     Ami Pro by pressing ALT + SPACEBAR to open the Control menu, then choose 
  75.     Control Panel).
  76.  2. In the Control Panel Printers menu, choose Configure / Setup and specify 
  77.     the appropriate paper source option for the envelope and landscape 
  78.     orientation if the printer requires this for printing envelopes.
  79.  3. Choose OK from the each of the three printer dialog boxes to return to the 
  80.     main Control Panel.
  81.  4. Press ALT + F4 to close the Control Panel.
  82.  5. In Ami Pro open the document containing the lines of text that will print 
  83.     on the envelope.
  84.  6. To run the macro, choose Tools / Macros / Playback, then select the macro 
  85.     name and choose OK.
  86.  7. If any lines are currently shaded, those lines will be copied to an 
  87.     untitled window using the style sheet specified in the macro.  If no lines 
  88.     are shaded, a Macro Pause dialog box will appear.  Shade the desired 
  89.     lines, then choose RESUME.  NOTE: A mouse is required to access Resume in 
  90.     the Macro Pause dialog box.  If you are not using a mouse, it will be 
  91.     necessary to have the text shaded before running the macro.
  92.  8. After the envelope is printed, the untitled window closes.