home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
ACROREAD
/
SUITE
/
DW09_S3.LSS
< prev
next >
Wrap
Text File
|
1996-07-10
|
1KB
|
29 lines
'//----------------------------------------------------
'// Script to print current page
'//----------------------------------------------------
' When this script runs it opens a dialog box that
' prompts the user to indicate whether
' the current page should be printed.
' It also demonstrates how to use the LSCONST.LSS
' file that contains a number of predefined constants.
' For example, this file contains such constants
' as MB_OKCANCEL and IDOK. This file is provied by
' Lotus as part of LotusScript.
' To make use of LSCONST.LSS, include it in
' the Options section of the script.
Use "lsconst"
Sub PrintCurrentPage()
Dim PrintRetVal As Integer
' Use the LotusScript MessageBox function to create a
' dialog box with a prompt for user feedback.
PrintRetVal = Messagebox("Would you like to print this page?", MB_OKCANCEL, "Print")
' Assess the user response to the message box; if the user
' clicks OK, then print the current page.
If(PrintRetVal = IDOK) Then
CurrentDocument.Print CurrentPage.Number,_
CurrentPage.Number, 1
End If
Selection.ClearSelection
End Sub