java - How to use command-line arguments to print ms office files? -


We are making an app to manage and print Word, Excel, PowerPoint, and PDF files ... < To do this, we find some command-line arguments that work well:

(OpenOffice.org)

P>

  "c: \ program files \ openoffice.org 3 \ program \ soffice.exe" - norestore -nofirsts tartwizard -nologo -headless -pt MicrosoftXPSDocumentWriter doc1.doc  

(using the word MS)

  "C: \ program files \ Microsoft Office \ Office \ WINWORD.EXE" doc1.doc / q / n / M FilePrintDefault / mFileExit  

But we can not find any options to set the page range to print ...

Is this possible?

Thanks for reading.

Any ideas will be appreciated

I really like this app in Java I am doing If the application is to manage word documents, and the word includes connotations in your conversation, the word is set on a local machine, then Java is not adding anything to the party. NAT is probably the right way to go here (where you can easily communicate with office com objects so that you want to do).

It is being said that for Open Office, you want to make this app as part of your installer.

For Microsoft Office, I look at the Java-Comm Bridge (like Jacob) to call the COM object. If this is not an option, you can install a macro in Word as part of your install process that you can call with the / m parameter and you can pass in the required range values ​​- but this It will be very ugly.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -