VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Печать на форме"
   ClientHeight    =   1824
   ClientLeft      =   2916
   ClientTop       =   3516
   ClientWidth     =   6432
   LinkTopic       =   "Form1"
   ScaleHeight     =   1824
   ScaleWidth      =   6432
   Begin VB.CommandButton cmd2 
      Caption         =   "Очистить"
      Height          =   375
      Left            =   4080
      TabIndex        =   1
      Top             =   1200
      Width           =   1215
   End
   Begin VB.CommandButton cmd1 
      Caption         =   "Печать"
      Height          =   375
      Left            =   960
      TabIndex        =   0
      Top             =   1200
      Width           =   1215
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmd1_Click()
With Font
.Name = "Times New Roman"
.Size = 18
.Italic = True
End With
frm1.ForeColor = QBColor(12)
frm1.Print "Times New Roman, 18, курсив, красный"
With Font
.Name = "Arial"
.Size = 14
.Italic = False
.Underline = True
End With
frm1.ForeColor = QBColor(9)
frm1.Print "Arial, 14, подчеркнутый, синий"
With Font
.Name = "Courier New"
.Size = 12
.Bold = True
.Underline = False
End With
frm1.ForeColor = QBColor(2)
frm1.Print "Courier New, 12, полужирный, зеленый"
End Sub

Private Sub cmd2_Click()
frm1.Cls
End Sub
