views:

49

answers:

1

I have an application in which I need to be able to print an existing Word 2007 format document.

  1. Looking around I can't see any free components that will facilitate this without the need for Word to be installed. Does anyone know of any?

  2. Assuming that I have to have Word installed to print the docx file, I was going to use the COM interop assembly. Some of the end users will have Word 2010 installed, some will have Word 2007 installed and some may be using Word 2003 with the compatibility pack installed so that they can view docx files.

    2a. How can I determine which version of the COM interop to reference and deploy?

+2  A: 

Microsoft.Office.Interop.Word should be compatiable with 2007 and 2003.

To check the installed office version though you can do:

new Microsoft.Office.Interop.Word.Application().Version
kyndigs