title: How can I get the printer HDC
body: <p>I have a COM component written in C++ that has a Print function. This print function takes the Printer hDC as a parameter that includes all settings to use for the print. Previously, this was called from VB6 code, and <code>Printer.hdc</code> would work here after setting everything on the <code>Printer</code> object.</p>
  
  <p>The code was converted from VB6 to VB.NET, and I have figured out most of things that I need to do. The old Printer object is available through the <code>Microsoft.VisualBasic.PowerPacks.Printing.Compability.VB6.Printer</code> class, but the old <code>hdc</code> property is not supported here.</p>
  
  <p>Can anyone tell me how to get this hdc?
  Is this hdc the same as <code>GetHdevmode()</code> on a <code>System.Drawing.Printing.PrinterSettings</code> object?</p>