Begin PrintPreviewControl.PreviewPrint PreviewPrint1
Height = 5532
Left = 120
TabIndex = 0
Top = 0
Width = 6252
_ExtentX = 11028
_ExtentY = 9758
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Test1()
Dim longstrings As String
longstrings = "Now is the time for all good men to come to the aid of their country. The quick brown fox jumped over the lazy dog. The rain in spain falls mainly on the plain. The quick brown fox jumped over the lazy dog."
PreviewPrint1.PaperSize = 1
PreviewPrint1.Orientation = 2
PreviewPrint1.BackColor = QBColor(7)
PreviewPrint1.FontName = "Arial"
PreviewPrint1.FontSize = 12
PreviewPrint1.FontStrikethru = True
PreviewPrint1.CurrentX = 1000
PreviewPrint1.CurrentY = 1000
PreviewPrint1.PreviewText longstrings, False
PreviewPrint1.FontStrikethru = False
PreviewPrint1.CurrentX = 300
PreviewPrint1.CurrentY = 3000
PreviewPrint1.FontSize = 16
PreviewPrint1.FontUnderline = True
PreviewPrint1.FontName = "Times New Roman"
PreviewPrint1.FontBold = True
PreviewPrint1.FontItalic = True
PreviewPrint1.PreviewText "Some more text to look at", False
longstrings = "Now is the time for all good men to come to the aid of their country. The quick brown fox jumped over the lazy dog. The rain in spain falls mainly on the plain. The quick brown fox jumped over the lazy dog."
PreviewPrint1.PaperSize = 1
PreviewPrint1.Orientation = 2
PreviewPrint1.BackColor = QBColor(14)
PreviewPrint1.ForeColor = QBColor(4)
PreviewPrint1.FontName = "Arial"
PreviewPrint1.FontSize = 12
PreviewPrint1.FontStrikethru = True
PreviewPrint1.CurrentX = 1000
PreviewPrint1.CurrentY = 1000
PreviewPrint1.PreviewText longstrings, False
PreviewPrint1.FontStrikethru = False
PreviewPrint1.FontName = "Playbill"
PreviewPrint1.CurrentX = 1000
PreviewPrint1.CurrentY = 1400
PreviewPrint1.PreviewText longstrings, False
PreviewPrint1.CurrentX = 300
PreviewPrint1.CurrentY = 3000
PreviewPrint1.FontSize = 16
PreviewPrint1.FontUnderline = True
PreviewPrint1.FontName = "Times New Roman"
PreviewPrint1.FontBold = True
PreviewPrint1.FontItalic = True
PreviewPrint1.PreviewText "Some more text to look at", False