Home arrow static arrow Java Programming [Archive] - merging 2 word files into one new word file
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - merging 2 word files into one new word file
This topic has 5 replies on 1 page.

Posts:7
Registered: 7/25/04
merging 2 word files into one new word file  
Jul 31, 2004 10:25 PM



 
Hi
Does somebody knows how to merge 2 word files into a new one?
i.e. - the second file suppose to begin at the end of the first file.
Thanks
 

Posts:12,831
Registered: 2/22/00
Re: merging 2 word files into one new word file  
Jul 31, 2004 10:46 PM (reply 1 of 5)



 
You mean two Microsoft Word files?

Open them both in Microsoft Word.
Select the entire second file.
Copy it.
Paste it at the end of the first file.

There may be a utility out there that does this automatically, but I suspect it would cost you $$$.

If you want to do this sort of thing regularly, you should use a different editor and file format.
Like, use plain text, or TeX, or HTML. Or make up your own format in XML and write some XSLT to transform it into something else.
 

Posts:7
Registered: 7/25/04
Re: merging 2 word files into one new word file  
Jul 31, 2004 10:53 PM (reply 2 of 5)



 
can you give me a code example how do it via xml and xslt ?
I need an automatic way to do it via java or any other way.
Thanks
 

Posts:31,095
Registered: 4/30/99
Re: merging 2 word files into one new word file  
Jul 31, 2004 11:03 PM (reply 3 of 5)



 
The simplest way would be to use a MS Word macro.
 

Posts:7
Registered: 7/25/04
Re: merging 2 word files into one new word file  
Jul 31, 2004 11:12 PM (reply 4 of 5)



 
can you give an example for this?
 

Posts:12,831
Registered: 2/22/00
Re: merging 2 word files into one new word file  
Aug 1, 2004 12:23 AM (reply 5 of 5)



 
can you give me a code example how do it via xml and
xslt ?
I need an automatic way to do it via java or any other
way.

No, I meant you could do it that way if you used a word processor that didn't suck.

DrClap's idea sounds good to me. Or maybe it could be done with VisualBasic?
 
This topic has 5 replies on 1 page.