home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
print
/
psout
/
psout.txt
< prev
next >
Wrap
Text File
|
1995-02-27
|
697b
|
18 lines
Sub Command1_Click ()
End
End Sub
Sub Command3_Click ()
Const SRCCOPY = &HCC0020
Printer.ScaleMode = 3
Printer.CurrentY = 50
Printer.Print " Sample of PostScript Printing"
Printer.Print "Program by Stephen Cramp - C/Systems"
Bits$ = String$(230 / 2 * 180, 0)
BitInfo$ = Chr$(40) + String$(3, 0) + Chr$(230) + String$(3, 0) + Chr$(180) + String$(3, 0) + Chr$(1) + Chr$(0) + Chr$(4) + Chr$(0) + String$(24, 0) + String$(64, 0)
ApiError% = GetDIBits(Picture1.hDC, Picture1.Image, 0, 180, Bits$, BitInfo$, 0)
ApiError% = StretchDIBits(Printer.hDC, 100, 150, 690, 540, 0, 0, 230, 180, Bits$, BitInfo$, 0, SRCCOPY)
Printer.EndDoc
End Sub