title: Using python to print (non-default networked printer)
body: <p>I have some code to generate a label for a networked label printer:</p>
  <pre><code>import win32ui
  dc = win32ui.CreateDC()
  dc.CreatePrinterDC()
  dc.StartDoc('Label Document')
  dc.StartPage()
  fontdata = {'height':80}
  font = win32ui.CreateFont(fontdata)
  dc.SelectObject(font)
  dc.TextOut(0,10,'Sample: 3174')
  dc.TextOut(0,90,'Date:26/02/21')
  dc.TextOut(0,180,'sample_name')
  dc.EndPage()
  dc.EndDoc()
  </code></pre>
  <p>This works well and prints to the label printer when it is defaulted, but in the future I will want to specify different printers for this. I've tried adding the name of the printer to the CreatePrinterDC line, but however I add it, it doesn't accept it. Is there any way to get a list of the printers available or some syntax for spesifying networked printers this way?</p>