This question comes from Wendy.
Mike,
I have a programmer question. I am not a programmer but looking to hire one to do a project for me. I am not sure how much info you need to know to answer my question but basically - I want a program that asks questions to people they answer the questions then these questions are used to make a word document. I have asked for a programmer to write the program in ASP.net. I have someone that wants to do it in PHP? Does it really matter?
Wendy
I'll answer your question at the end of the response, but I feel that it's my duty as a programmer and open source advocate to give you a quick lecture on the general topic at hand :)
I find that most decisions that I've made to require a specific format have come back to bite me. I suppose the first question to ask yourself is why Word? Would RTF work fine? What about PDF?
I'm sure you have your reasons, but please be sure to consider all your options and also all the consequences. The less-proprietary your output formats are, the more portable your application will be in the long run. I've never personally worked with the MS Word format before, but I can assure you that the number of tools available as well as the number of qualified programmers who are able to use these tools to make this happen are few in number.
Compare that to the number of tools and qualified programmers who are able to work with more open formats. If you try your search again, I promise you will be pleasantly surprised. Furthermore, because of the number of good tools and programmers available, you can usually get this work done at a much lower cost (assuming your programmer bills you hourly, that is).
Ok. So that you are fully aware of the best way to begin your search for a solution to this problem, you can stop reading this response and go hire a programmer can offer some suggestions to you on the best method of implementation, considering this as well as the other business requirements that you have.
Anyway, I think you can solve this without ASP.NET. From what I understand the DOCX file format can be a document template of sorts which maps data placeholders to nodes in an XML document. Here's what I think you'll need to get this done at least to prototype quality (meaning right now):
- A DOCX template
- Few valid XML documents
- A programmer who's familiar with VB and XPATH
Put them all in a box, shake for 10 minutes and you should have what you're looking for.
Please refer to these two articles which I found for you. The app they build is more complex than what you're looking for... but should illustrate the concepts well.
http://blogs.msdn.com/erikaehrli/archive/2006/08/11/word2007DataDocumentGenerationPart1.aspx
http://blogs.msdn.com/erikaehrli/archive/2006/08/11/word2007DataDocumentGenerationPart2.aspx
Good luck
Readers: It's your turn.
Am I right? Wrong? Agree? Disagree?