I know I have had several New Threads here lately that is because I think no one understands what I am trying to do. I am trying to get the printout on a peice of paper to look like this:
1. example
KF
123
O45
1975
and not like this:
2. example
KF 123 O45 1975
In one of the threads someone had sent me some code which I have listed below when I try it, it comes out looking like example 2.:
I want the code to print out the data to look like example 1. I hope there is someone out there that can help meCode:Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'Replica_of_db181DataSet.CARD_CATALOG' table. You can move, or remove it, as needed. Me.CARD_CATALOGTableAdapter.Fill(Me.Replica_of_db181DataSet.CARD_CATALOG) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintDocument1.Print() End Sub Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim fnt As New Font("Arial", 10, FontStyle.Regular, GraphicsUnit.Point) e.Graphics.DrawString(TextBox1.Text, fnt, Brushes.Black, 0, 0) TextBox1.Multiline = True e.HasMorePages = False End Sub End Class


Reply With Quote


Bookmarks