D
Danielle Robinson
Hi,
I am fairly new to vb.net and over the past few weeks I have been
working on printing text. But it would seem that this is not my strong point
because nothing works. I have had multiple problems and most of them have
been because of margins.
Firstly neither the printing code nor my printer seem to recognise the
margins of 100 that I set. On my printer the heading which is at x-position
0 prints out about 2 1/2 cm down the page but on another printer it prints
out right at the top. The same happens with my left margin. No matter what
number I put into the left margin be it 1 or 100, it just wont print there.
On my printer there is about one cm space and on another it is right at the
edge...again
I used
Private mymargins As New System.Drawing.Printing.Margins(100, 100, 100, 100)
I also added
pd.OriginAtMargins =True
e.PageBounds.FromLTRB(100, 100, 700, 700)
Nothing woks.
My other problems are related to my margin problem so I figured I should get
the main one out of the way first.
I really need some help with this because I am really struggling.
Thankyou so much in advance,
Danielle.
I am fairly new to vb.net and over the past few weeks I have been
working on printing text. But it would seem that this is not my strong point
because nothing works. I have had multiple problems and most of them have
been because of margins.
Firstly neither the printing code nor my printer seem to recognise the
margins of 100 that I set. On my printer the heading which is at x-position
0 prints out about 2 1/2 cm down the page but on another printer it prints
out right at the top. The same happens with my left margin. No matter what
number I put into the left margin be it 1 or 100, it just wont print there.
On my printer there is about one cm space and on another it is right at the
edge...again
I used
Private mymargins As New System.Drawing.Printing.Margins(100, 100, 100, 100)
I also added
pd.OriginAtMargins =True
e.PageBounds.FromLTRB(100, 100, 700, 700)
Nothing woks.
My other problems are related to my margin problem so I figured I should get
the main one out of the way first.
I really need some help with this because I am really struggling.
Thankyou so much in advance,
Danielle.