Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am generating docx files in my application. I want to print them out (by calling shell execute with the verb "print").

It works on PCs with Office 2007 or 2010 and it works on one PC with the Office Compatability Pack installed - but on one of those it doesn't work. Windows says that no application is linked with this file extensions.

I see that there is no entry "print" on the context menu for docx files on this computer. I wanted to update the Compability Pack, but it said it is already up to date.

Any ideas what could be wrong on this PC ?

share|improve this question
    
Set the default program for the given extension. –  Ramhound Oct 5 '11 at 17:52
    
Already did this - no change (but the problem is just on this special PC) –  bernhardrusch Oct 6 '11 at 6:20

1 Answer 1

up vote 0 down vote accepted

I've got it to get printed by calling "c:\Program Files\Microsoft Office\Office11\winword.exe" fileToPrint.docx /q /n /mFilePrintDefault /mFileExit

It's not pretty - but at least it works. I just use it as a second strategy if ShellExecute with the print verb fails.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.