title: How to use command-line arguments to print ms office files?
body: <p>We are doing an app to manage and print Word, Excel, PowerPoint, and PDF files...</p>
  
  <p>No application can be shown to the user when printing.</p>
  
  <p>To do that, we find some command-line arguments that work well:</p>
  
  <p>(using openoffice.org)</p>
  
  <pre><code>"C:\Program Files\OpenOffice.org 3\program\soffice.exe" -norestore -nofirsts tartwizard -nologo -headless -pt MicrosoftXPSDocumentWriter doc1.doc
  </code></pre>
  
  <p>(using ms word)</p>
  
  <pre><code>"C:\Program Files\Microsoft Office\Office\WINWORD.EXE" doc1.doc /q /n /mFilePrintDefault /mFileExit
  </code></pre>
  
  <p>But we just can't find any option to set the page range to print...</p>
  
  <p>Is this possible? Another option to print those documents without showing anything to the user?</p>
  
  <p>Thanks for reading.</p>
  
  <p>any ideas would be appreciated</p>