I'm trying to learn how to print using the print dialogue from VB.Net 2005
My biggest and current problem is how to over-ride the margins, such as using something akin to a "page setup" feature. I don't see that in the print dialogue.
Currently, using code like this:
Private Sub mDoc_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles mDoc.PrintPage
Dim xPos As Single = e.MarginBounds.Left
Dim yPos As Single = e.MarginBounds.Top
Dim lineHeight As Single = mFont.GetHeight(e.Graphics)
Static l As Integer
Dim intCt As Integer
(which I "borrowed" from someone here on EE :-) )
my documents have a 1 1/2 " margin at the top and about 1 1/4" margin to the left.
So apparently that's the default for the printer.
How can I use some kind of page setup feature to over-ride those and also, but not as important, to set font choices, etc.?