title: How to print a document file to a network printer in c#
body: <p>I need to send files (txt, docs etc.) over network using printer driver. I'm able to send raw data to server but not files. I had already tried to <a href="https://stackoverflow.com/a/11684469/17768086">Ehsan's Method</a> for printing, but the data inside the document doesn't seems to appear in the document. What I need is a method, or <code>cmd</code> line to print a file over network.</p>