Template Problem in Access 2010

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
 
Does the template have code in it? If not, why not save the template as a .dotx file.

What happens if you skip Step 2? Create the new document, add the data, and then save.

Alternatively, do you have to convert to Word 10? Just keep using the old template and create .doc files.
 

Users who are viewing this thread

Back
Top Bottom