1 Attachment(s)
Create a word document from a search
I need to create a word document from the results of a search... I have created the search Here... once on the results page of the search I need to be able to get the data that I want to put in the report and then be able to generate a word doc from that (there is a button called 'Create Report' that takes you to another page that should generate the word doc)..... I have created a word doc template to use to input the data into but this is where I get lost. (This is just a junk template.. mine will be different but this will at least show me what to do)
Here are the things I know:
I am using a linux server so I cant use COM.
I want to be able to create a new section for each 'WorkedTask' that is selected
The Highlight must be under the correct Task heading
Basically the only thing that anyone will select when creating a report is the task and highlight fields and this is all we care about when doing the weekly report. I have the other data in there to pull out for other reasons....
so say you search by Name and Date-- Ray Fossil and 12/31/08
You will get 2 different task and 3 different highlights... and say you check Training, Hello World, HHHWWWW1, TTTTT1, TTTTT2
so in the word doc... it needs to have two different sections
Hello World and Training
and under Hello World it needs to have the one highlight---- HHHWWWW1
and under Training it needs to have the two highlights---- TTTTT1, TTTTT2
can someone help me in figuring out how to accomplish this?
I have attached my code and the word doc