title: Printing Properly in C#
body: <p>I really don't get how to adjust the right settings for printing.</p>
  
  <p>Using <code>OriginAtMargins</code> makes my margins work, but <code>Margin(0, 0, 0, 0)</code> goes outside the paper size <em>(which is <strong>302x700</strong>)</em>, and drawing a rectangle using the <code>PageBounds</code> sets it in the center, with I estimate to have 1-inch margins, and the <code>MarginBounds</code> sets in at the center of the <code>PageBounds</code> which also has a 1-inch margins. And most of the time, the preview is very different from the printed one, especially at the margins.</p>
  
  <p>When I'm not using <code>OriginAtMargins</code>, the <code>PageBounds</code> is the same as the paper size, and the <code>MarginsBounds</code> is set at the center with 1-inch margins. The problem here is that although the preview shows the contents nicely, the right side of the document is being cut off when printed, so I had to adjust the rectangle.</p>
  
  <p>Overall, I can hard-code the "just right" sizes of the rectangle/margin, but there will be too much unnecessary estimates and trial-and-error.</p>
  
  <p><strong>My question is:</strong> What are the proper settings for printing? So that the preview and the printed is in sync, and what you coded is what you see, especially in sizes</p>