Some information about the php project that is currently causing the issue:
the system is used by our trainers in our company, it contains Q&As, work orders and troubleshooting skill checks and so on. If machine operators have attended a training at our company, they will have to answer a questionnaire to check their level of understanding of the just attended training.
These questionnaires are created through selecting a variable amount of questions from the question pool and an appropriate language. When the questionnaire generator (the php script) is started, all selected questions with a choice of up to 5 answers will be printed on the first pages of the word document with additional images and so on; after a page break the participant's solution sheet will be added where he has to check his correct answers; the last page contains the right answers to the created test.
We decided to use word docs, because the trainers can't do online test where the trainings are held. In some cases trainers modify the generated documents, that's why we didn't use PDF documents.
the problem with viewing it in Wordpad is, that the document is only pretending to be a Word doc; if the header is messed up, all you get is pure HTML and CSS code. So whenever I try to save it with a ".doc" extension, Word will ask me again to determine the encoding and won't format the document according to the supplied HTML tags and CSS styles.
Thanks again for your help!