hi
well my problem is the next......... i'm making a print in a paper my problem is that i whant to align to the right size of the paper all the items....
like this....
the code i have until the moment is :Code:artigo a 49,00 artigo b 1150,00
vb Code:
Public Class Form1 Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim g As Graphics = e.Graphics Dim mensagem As String = "Ola" Dim FonteMensagem As New Font("Verdana", 10, System.Drawing.GraphicsUnit.Point) g.DrawString(mensagem, FonteMensagem, Brushes.Black, 0, 20) g.DrawString(mensagem, FonteMensagem, Brushes.Black, 0, 40) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintDocument1.Print() 'PrintPreviewDialog1.ShowDialog() End Sub End Class



Reply With Quote

