We help IT Professionals succeed at work.

An error occurred while loading 'ThisDocument'. Do you want to continue loading the project?

andrew_kerr
andrew_kerr asked
on
Medium Priority
1,936 Views
Last Modified: 2012-05-04
Hi,

I get the above error. Have tried everything that I can find. Does anyone have any suggestions?
One suggestion was to remove the Acrobat toolbar, which works fine. However, the internal application I use calls Word, and I still get the error.

Thanks,
AK
Comment
Watch Question

Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
There is probably a macro in your normal.dot that is causing this.  Try deleting/renaming all instances of normal.dot and see if you get the same error message.

Also trying running Word with the /a switch so your add-ins don't load.

Joseph O'LoughlinSystems Administrator
CERTIFIED EXPERT

Commented:
Hi Andrew
Are you using a Web browser, MS Project, MS WinWord or are you using VBA to automate a task?
If the problem is with just one document, open Word, and instead of File, Open, use Insert, File to open the file (having turned on Confirm Conversions at Open in Tools, Options within WinWord).  

If the document opens OK resave it with an new name, you may have lost the fonts or embedded objects that caused the problem.
Best of luck.

Author

Commented:
Thanks guys.

Have tried the normal.dot trick, but it didn't help.
The /a switch does work, however, this will require major re-programming of the app we use. :(

We are using VBA to automate a task.
We tried the Insert -> File, and then works well. However, the document formatting changes a little in some instances.
Joseph O'LoughlinSystems Administrator
CERTIFIED EXPERT

Commented:
What Insert File is doing is going through the multiple streams in the original document and simplifying it for the target document into fewer streams.

Is a conversion happening, say from wd97 to 2k?

If you're default printer is a hp or PCL printer the Ariel font will be narrower.  If yhe task is to create a PDF, having a postscript printer driver as the default would be best.  If the final format is html, then as the layout will need to be browser netural the loss of formatting should not be a problem.

There may be objects in the file which word on it's own can not make sense of.  The way the clipboard works is that each open application registers the formats it can accept with it.  So having Corel Graphics open in the background gives me more options in Paste Special... in Word.

It could be that some of your macro, or that behind an addin, is for a previous office or vba version.
See for example this paq
http://Q_10361877.html

I agree with JOrzech; There is probably a macro in your normal.dot that is causing this, or perhaps a macro in the automated doc.

If we have not answered the question can you provide the steps and objective of you're task to see if we are missing a trick?
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
You say:
We tried the Insert -> File, and then works well. However, the document formatting changes a little in some instances

You may want need to copy styles over from the original document to the new document.  You can use organizer to do this.  I usually go to Tools, Templates and Addins, Organizer, and copy the styles from the original problem document to the new inserted file document.

Just one more thing to think about!

Author

Commented:
Thanks guys. Just one more. Is there anyway to open an instance of Word in code that simulates the functionality of "-a".
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
What do want to do?  I'm not going to assume I know what the -a switch does...let's clarify.  Thanks andrew_kerr

Author

Commented:
Sorry. I meant the "/a" switch. We would like to open Word without any of the addins loading, as this appears to be the best way to get around this problem.
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:

Author

Commented:
Getting there. :) What we're having trouble with is invoking these paramaters when creating an instance of Word in code.
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
You're loading Word via VBA?

Author

Commented:
Correct. :)
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
I'll have to get back to you tomorrow...have a rush job tonight....so sorry.  Look up shell execute though...something like that.  I can't give you exact details.

What are you trying to run from?  Desktop?  Tomorrow then...

Author

Commented:
Can't use shell execute.  I need to create an instance of Word within my application.
 
It is done like this:
 
Dim Word As New Word.Application
Dim WordDoc As Word.Document

WordDoc = Word.Documents.Open("c:\mydoc.doc")

I need to apply the functionality of the "/a" command line parameter to the above code.

That's what I have got from my programmers. Any help would be great. Thanks.
Joseph O'LoughlinSystems Administrator
CERTIFIED EXPERT

Commented:
Why not, instead of opening a document, open a template, extention dot?
Joanne M. OrzechManager, Document Services Center
Top Expert 2004

Commented:
andrew_kerr

Anything new here?  Are you still experiencing this problem or has it been resolved?

Author

Commented:
Still experiencing the problem. :(
Joseph O'LoughlinSystems Administrator
CERTIFIED EXPERT

Commented:
What's in Word's startup directory?

Author

Commented:
Startup directory is empty. This would have to be the most tedious problem we have ever encountered.. :)
Joseph O'LoughlinSystems Administrator
CERTIFIED EXPERT

Commented:
I suspect that you'll need to step line by line through you're code.
I can see how troubleshooting this will be difficult, as to invoke the VBA editor, a document needs to be opened.  You're macro could be making the assumption that it is when it's not.  You may have to add lines to create FILE1 instead of the DOC1 that is not there and in code select or activate it.  If you have a company template this may be the file to use.
I take it that the Acrobat toolbar is a WLL or DLL addin?
Manager, Document Services Center
Top Expert 2004
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.