VB.NET Printing- how to use margins and scales

I have some easy question about printing.
I have a picture to print. I do not want to print it from the corner of the paper so I use
        PrintDocument1.OriginAtMargins = True
        PrintDocument1.DefaultPageSettings.Margins.Left = 200
        PrintDocument1.DefaultPageSettings.Margins.Top = 200

but it does not work ! I put the code in the printPage event and used a PrintPreviewDialog to see what will be printed. My picture appears at the very top left corner.

Another question: How can I convert Inches into pixels and the other way?
I thought 1inch= 79 pixels but it does not seem nearly right.
You can read some info about pixels at: http://www.lowendmac.com/tech/pixels.html
 This is very important in printing.
Maybe the default setting the paperSize.width is 8.5inches!!or is it?
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.