home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form2
- BorderStyle = 1 'Fixed Single
- Caption = "PrintClip"
- ClientHeight = 0
- ClientLeft = -1890
- ClientTop = 30
- ClientWidth = 1875
- Height = 405
- Icon = PRINTCLP.FRX:0000
- Left = -1950
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MinButton = 0 'False
- ScaleHeight = 0
- ScaleWidth = 1875
- Top = -315
- Width = 1995
- Sub Form_Load ()
- windowstate = 1
- End Sub
- Sub Form_Resize ()
- If windowstate <> 1 Then
- windowstate = 1
- Const CF_TEXT = 1 ' Define bitmap format.
- On Error Resume Next ' Setup error handling.
- If Clipboard.GetFormat(CF_TEXT) Then
- temp$ = Clipboard.GetText(CF_TEXT) ' Get Clipboard text.
- printer.Print temp$
- printer.EndDoc
- Else
- Msg$ = "There is no text on the Clipboard."
- MsgBox Msg$ ' Display error message.
- End If
- End If
- End Sub
-