PiedPiper70
Registered User.
- Local time
- Today, 18:15
- Joined
- Oct 21, 2012
- Messages
- 115
I recently upgraded a largish A2003 system to A2010. The conversion to .accdb has gone very well. Now I want to tackle word templates and documents. Part of the system creates Word documents based on templates and using Automation. In A2003 this has worked perfectly for years and still works now with .dot and .doc files. The process is:-
1. Run the .dot to create a .doc
2. Save the .doc with a new path and filename
3. Open the .doc and fill with data using bookmarks
4. Save and/or print
But it's time to updates to Word 2010 format.
I have now converted all the templates to .dotm and changed the code to run a .dotm to create a .docx. But I have a problem at Point 3 above -I get an Error 6102 Word Encountered an Error processing the XML file...etc as soon as I try to open the .docx. In fact it can't even be opened manualy. If I do the whole thing manually using Word then it's OK, so it's looks like something in my code which worked perfectly in 2003 doesn't work now in 2010.
Can anybody help out here - I'm lost !!
Thanks
Dave
1. Run the .dot to create a .doc
2. Save the .doc with a new path and filename
3. Open the .doc and fill with data using bookmarks
4. Save and/or print
But it's time to updates to Word 2010 format.
I have now converted all the templates to .dotm and changed the code to run a .dotm to create a .docx. But I have a problem at Point 3 above -I get an Error 6102 Word Encountered an Error processing the XML file...etc as soon as I try to open the .docx. In fact it can't even be opened manualy. If I do the whole thing manually using Word then it's OK, so it's looks like something in my code which worked perfectly in 2003 doesn't work now in 2010.
Can anybody help out here - I'm lost !!
Thanks
Dave