Create word report from several XML files with Javascript

P

Patrick Temple

Let me first give the scenario and then I'll ask my questions.

We use an InfoPath form to create XML files that contain specific
information. These files are stored in Sharepoint services document
libraries. We are trying to create a report of all the xml files in a
particular library by pressing a button. Basically, the script gets a list
of all xml files in the doc library, then needs to export the xml to word for
rendering and printing. We could do this for one file in InfoPath fairly
easily but we need to consume and print all files in a library at one time.

Currently I can use javascript to get the list of files and I can use
javascript to open a word session and load the xml file. Unfortunately that
is where I've hit the wall.

Questions:

1) How do I get WORD to render the xml instead of display it?
2) I have read some stuff about using and xslt and associating it to the
word doc but can't seem to find good instructions on how to do this.
3) How do I create and xslt file to associate with WORD and the XML file.
4) How do I load more than one xml file into a word doc?

I guess thats good for now, any help would be greatly appreciated. Also If
there is another way or easier way of doing this, I'm open to suggestions as
well.

Thanks again

--Patrick Temple
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top