Word 2007 opening problem...

J

Jeffery B Paarsa

Hello,

Through a VB app. developed by Visual Studio 2005 I am opening a Word
document template, pupulate it from VB Userform data and print it. So far no
problem but after printing I save the document and try to close the document.
While it seems document is closed but Word empty window stays open.

Now when I go to the directory I have saved the document and try to open the
document it can not open it and it gives me the following dialog error.

The Office Open.XML file (Paarsa)(20090519010537).doc cannot be opened
because there are problems with the contents. Clicking on the Details >>>
shows the following:
Details
Unspecified error
Location: Part:/word/header1.xml, Line: 2, Column: 3263

How can I find out what is wrong with my document?

Strang is that I do this for multiple Word Template some works with no
problem and some does not... I tend to beleive there is something wrong
inside of my Word Template X.dot that does not work. How can I find this
problem?
 
S

Stefan Blom

You may want to ask in a programming newsgroup such as
microsoft.public.word.vba.general where you are more likely to get a
knowledgeable reply.
 
J

Jeffery B Paarsa

Hi,

What I did was take one of the working templates and just copy the body of
the damaged template into the working template and save it... Now it works...
From the error message I got the idea that problem is in the Header area:
 

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