[RESOLVED] [2005] Alignment
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....
Code:
artigo a 49,00
artigo b 1150,00
the code i have until the moment is :
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
Re: [RESOLVED] [2005] Alignment
:thumb: Hopefully you agree with me that doing it yourself with a point in the right direction is more satisfying and ultimately more beneficial than having the solution handed to you on a plate. Now that you've seen how you can solve this problem using the documentation you should hopefully be able to solve, at least partially, more of your own issues. That can only be a good thing.