home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ User's Journal & Wi…eveloper's Journal Tools
/
C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso
/
vbdemos
/
vbdemos.lzh
/
VBLPDEMO.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-07-14
|
8KB
|
215 lines
Global PrintWhat As Integer
Global Collate As Integer
Global PrintToFile As Integer
Global PageNumbers As Integer
Global FromPage As Integer
Global ToPage As Integer
Global MinPage As Integer
Global MaxPage As Integer
Global NumberOfCopies As Integer
Global Selection As Integer
Global VBLiteDir As String
' Constants for the Action property
Global Const DISPLAY_PRINT_DIALOG = 0
Global Const DISPLAY_PRINTSETUP_DIALOG = 1
Global Const RESET_TO_DEFAULT = 2
Global Const START_PRINT_JOB = 3
Global Const ADVANCE_TO_NEXT_PAGE = 4
Global Const END_PRINT_JOB = 5
Global Const PRINT_TEXT = 6
Global Const PRINT_SHAPE = 7
Global Const PRINT_DIB = 8
Global Const PRINT_MEMORY_BITMAP = 9
Global Const DISPLAY_CHOOSEFONT_DIALOG = 10
' Constants for the ShapeToPrint property
Global Const DRAW_POINT = 0
Global Const DRAW_LINE = 1
Global Const DRAW_ARC = 2
Global Const DRAW_CHORD = 3
Global Const DRAW_ELLIPSE = 4
Global Const DRAW_PIE = 5
Global Const DRAW_RECTANGLE = 6
Global Const DRAW_ROUNDEDRECT = 7
Global Const DRAW_POLYGON = 8
' Constants for the PrintWhat property
Global Const PRINT_ALL_PAGES = 1
Global Const PRINT_SELECTION = 2
Global Const PRINT_RANGE_OF_PAGES = 3
' Constants for the PrintToFile property
Global Const DISABLE_PRINTTOFILE_CHECKBOX = 1
Global Const HIDE_PRINTTOFILE_CHECKBOX = 2
Global Const PRINTTOFILE_CHECKED = 3
Global Const PRINTTOFILE_NOTCHECKED = 4
' Constants for the PageNumbers property
Global Const DISABLE_PAGES_BUTTON = 1
Global Const PAGES_BUTTON_SET = 2
Global Const PAGES_BUTTON_NOT_SET = 3
' Constants for the Selection property
Global Const DISABLE_SELECTION_BUTTON = 1
Global Const SELECTION_BUTTON_SET = 2
Global Const SELECTION_BUTTON_NOT_SET = 3
' Constants for the Orientation property
Global Const O_PORTRAIT = 1
Global Const O_LANDSCAPE = 2
' Constants for the PaperSize property
Global Const PS_LETTER = 1 ' Letter 8 1/2 x 11 in
Global Const PS_LETTERSMALL = 2 ' Letter Small 8 1/2 x 11 in
Global Const PS_TABLOID = 3 ' Tabloid 11 x 17 in
Global Const PS_LEDGER = 4 ' Ledger 17 x 11 in
Global Const PS_LEGAL = 5 ' Legal 8 1/2 x 14 in
Global Const PS_STATEMENT = 6 ' Statement 5 1/2 x 8 1/2 in
Global Const PS_EXECUTIVE = 7 ' Executive 7 1/4 x 10 1/2 in
Global Const PS_A3 = 8 ' A3 297 x 420 mm
Global Const PS_A4 = 9 ' A4 210 x 297 mm
Global Const PS_A4SMALL = 10 ' A4 Small 210 x 297 mm
Global Const PS_A5 = 11 ' A5 148 x 210 mm
Global Const PS_B4 = 12 ' B4 250 x 354
Global Const PS_B5 = 13 ' B5 182 x 257 mm
Global Const PS_FOLIO = 14 ' Folio 8 1/2 x 13 in
Global Const PS_QUARTO = 15 ' Quarto 215 x 275 mm
Global Const PS_10X14 = 16 ' 10x14 in
Global Const PS_11X17 = 17 ' 11x17 in
Global Const PS_NOTE = 18 ' Note 8 1/2 x 11 in
Global Const PS_ENV_9 = 19 ' Envelope #9 3 7/8 x 8 7/8
Global Const PS_ENV_10 = 20 ' Envelope #10 4 1/8 x 9 1/2
Global Const PS_ENV_11 = 21 ' Envelope #11 4 1/2 x 10 3/8
Global Const PS_ENV_12 = 22 ' Envelope #12 4 \276 x 11
Global Const PS_ENV_14 = 23 ' Envelope #14 5 x 11 1/2
Global Const PS_CSHEET = 24 ' C size sheet
Global Const PS_DSHEET = 25 ' D size sheet
Global Const PS_ESHEET = 26 ' E size sheet
Global Const PS_ENV_DL = 27 ' Envelope DL 110 x 220mm
Global Const PS_ENV_C5 = 28 ' Envelope C5 162 x 229 mm
Global Const PS_ENV_C3 = 29 ' Envelope C3 324 x 458 mm
Global Const PS_ENV_C4 = 30 ' Envelope C4 229 x 324 mm
Global Const PS_ENV_C6 = 31 ' Envelope C6 114 x 162 mm
Global Const PS_ENV_C65 = 32 ' Envelope C65 114 x 229 mm
Global Const PS_ENV_B4 = 33 ' Envelope B4 250 x 353 mm
Global Const PS_ENV_B5 = 34 ' Envelope B5 176 x 250 mm
Global Const PS_ENV_B6 = 35 ' Envelope B6 176 x 125 mm
Global Const PS_ENV_ITALY = 36 ' Envelope 110 x 230 mm
Global Const PS_ENV_MONARCH = 37 ' Envelope Monarch 3.875 x 7.5 in
Global Const PS_ENV_PERSONAL = 38 ' 6 3/4 Envelope 3 5/8 x 6 1/2 in
Global Const PS_FANFOLD_US = 39 ' US Std Fanfold 14 7/8 x 11 in
Global Const PS_FANFOLD_STD_GERMAN = 40 ' German Std Fanfold 8 1/2 x 12 in
Global Const PS_FANFOLD_LGL_GERMAN = 41 ' German Legal Fanfold 8 1/2 x 13 in
Global Const PS_USER = 256 ' User defined paper size
' Constants for the DefaultBin property
Global Const DB_UPPER = 1
Global Const DB_ONLYONE = 1
Global Const DB_LOWER = 2
Global Const DB_MIDDLE = 3
Global Const DB_MANUAL = 4
Global Const DB_ENVELOPE = 5
Global Const DB_ENVMANUAL = 6
Global Const DB_AUTO = 7
Global Const DB_TRACTOR = 8
Global Const DB_SMALLFMT = 9
Global Const DB_LARGEFMT = 10
Global Const DB_LARGECAPACITY = 11
Global Const DB_CASSETTE = 14
' Constants for the PrintQuality property
Global Const PQ_DRAFT = -1
Global Const PQ_LOWRES = -2
Global Const PQ_MEDIUMRES = -3
Global Const PQ_HIGHRES = -4
' Constants for the UseOfColor property
Global Const COLUSE_MONO = 1
Global Const COLUSE_COLOR = 2
' Constants for the DuplexType property
Global Const DT_SIMPLEX = 1
Global Const DT_VERTICAL = 2
Global Const DT_HORIZONTAL = 3
' Constants for the DrawMode property
Global Const DM_BLACK = 1
Global Const DM_NOTMERGEPEN = 2
Global Const DM_MASKNOTPEN = 3
Global Const DM_NOTCOPYPEN = 4
Global Const DM_MASKPENNOT = 5
Global Const DM_NOT = 6
Global Const DM_XORPEN = 7
Global Const DM_NOTMASKPEN = 8
Global Const DM_MASKPEN = 9
Global Const DM_NOTXORPEN = 10
Global Const DM_NOP = 11
Global Const DM_MERGENOTPEN = 12
Global Const DM_COPYPEN = 13
Global Const DM_MERGEPENNOT = 14
Global Const DM_MERGEPEN = 15
Global Const DM_WHITE = 16
' Constants for the DrawStyle property
Global Const DS_SOLID = 0
Global Const DS_DASH = 1
Global Const DS_DOT = 2
Global Const DS_DASHDOT = 3
Global Const DS_DASHDOTDOT = 4
Global Const DS_NULL = 5
Global Const DS_INSIDEFRAME = 6
' Constants for the FillStyle property
Global Const FS_SOLID = 0
Global Const FS_TRANSPARENT = 1
Global Const FS_HORIZLINE = 2
Global Const FS_VERTLINE = 3
Global Const FS_UPDIAGONAL = 4
Global Const FS_DOWNDIAGONAL = 5
Global Const FS_CROSS = 6
Global Const FS_DIAGCROSS = 7
' Constants for the ScaleMode property
Global Const SM_USER = 0
Global Const SM_TWIP = 1
Global Const SM_POINT = 2
Global Const SM_PIXEL = 3
Global Const SM_CHARACTER = 4
Global Const SM_INCH = 5
Global Const SM_MILLIMETER = 6
Global Const SM_CENTIMETER = 7
' Constants for possible error codes
Global Const ERR_UNABLE_TO_CHANGE_SETTING = 32000
Global Const ERR_UNABLE_TO_GET_SETTING = 32001
Global Const ERR_UNSUPPORTED_PRINTER_SETTING = 32002
Global Const ERR_UNABLE_TO_START_PRINTJOB = 32003
' Constants for the SupportedSettings property
Global Const SUPP_ORIENTATION = &H1&
Global Const SUPP_PAPERSIZE = &H2&
Global Const SUPP_PAPERLENGTH = &H4&
Global Const SUPP_PAPERWIDTH = &H8&
Global Const SUPP_SCALEFACTOR = &H10&
Global Const SUPP_DEFAULTBIN = &H200&
Global Const SUPP_PRINTQUALITY = &H400&
Global Const SUPP_COPIES = &H100&
Global Const SUPP_USEOFCOLOR = &H800&
Global Const SUPP_DUPLEXTYPE = &H1000&
' Constants for ErrorCode and NotReported parameters
' for the PrintAborted event
Global Const ERROR_USERABORTED = 0
Global Const ERROR_GENERALERROR = -1
Global Const ERROR_APPABORT = -2
Global Const ERROR_PRINTMANAGERABORT = -3
Global Const ERROR_OUTOFDISKSPACE = -4
Global Const ERROR_OUTOFMEMORY = -5
Global Const ERROR_REPORTED = -1
Global Const ERROR_NOTREPORTED = 0