Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27248

Textbox printing FONT size problem

$
0
0
hello experts
i am working on a project in which i selected multiline textbox for printing invoice as cant able to make a report using report viewer with data from different tables (sql query ) now the the box is printing fine but the font size is very small how to change the font and font size
HEre is my code

Code:

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        e.Graphics.DrawString(txtInvoice.Text, Me.Font, Brushes.Black, 30, 30)
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        PrintDocument1.Print()
        Me.Close()


Viewing all articles
Browse latest Browse all 27248


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>