The way we used to solve this sort of thing in the old days was to use RTF. You can use Word to create an RTF file which will essentially have the same layouts as a native DOC file. But RTF is just text, so you could open that RTF file in Notepad and make the right changes. Unfortunately, that's kind of a royal pain to work with, but life was hard in the old days. Nowadays, you might find it easier to use a Java library like POI: http://poi.apache.org/hwpf/quick-guide.html I haven't actually used POI with Word documents, but before we got CFSPREADSHEET it was common to use this with Excel. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.
... View more