Advertisement
Advertisement
| 07.23.2008 at 07:19AM PDT, ID: 23588579 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
Dim result As System.Windows.Forms.DialogResult
result = PrintDialog1.ShowDialog()
If result.ToString.ToUpper.Equals("OK") Then
Try
Dim printer As New Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printer
printer.FontSize = 20
printer.CurrentX = 100
printer.CurrentY = 100
printer.Print("ok")
printer.EndDoc()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
|