home *** CD-ROM | disk | FTP | other *** search
- REM Description: Prints the current page
- REM Filename: printpag.wmc
- REM Created by: Steven Wylie - 11/29/93
-
- REM Can't run if no document open
- IF GetDocName$() = "" THEN
- MESSAGE "Please create a new document or open an existing document first."
- STOP
- ENDIF
-
- REM If the draft editor is active, we have to switch to the page editor.
- IF GetEditor() = 0 THEN
- switch% = 1
- ret% = GetTextOffset(start%, end%)
- ViewEditor 1
- ENDIF
-
- REM Get the number of the current page.
- pageNum% = GetPageNum(0)
-
- REM Print just the one page.
- FilePrint 0, pageNum%, pageNum%, , , , , ,
-
- IF switch% = 1 THEN
- ViewEditor 0
- EditGotoOffset start%,
- IF ret% THEN EditGotoOffset end%, 1
- ENDIF
-
- ***** WARNING *****
- This is a WSWin macro file.
- Subsequent data is binary information and should not be modified.