![]() ![]() This is a significant problem for users that keep macro-enabled templates in the Workgroup Templates path. Word 2007 doesn't have this problem it lets users enable macros even if the base template is on the server, and whether or not it is DOT or DOTM, DOC or DOCX. ![]() Then they will be prompted and can enable macros. If they create a DOC document from a DOT template, " With Macro Security set to "Disable with Notification," Word 2010 users cannot enable macro security for DOCX documents they've created based on DOT nor DOTM files, nor DOC files based on DOTM files. "- Word 2010 automation document open fails when template directories. To give you some perspective about documents that are on a server, here is a snippet of text from another Forum post: Office 2010 is different in that it has new security aspects. Your application doesn't move on to the next step until you have a valid instance of Word.applicaiton instantiated and ready for the next call. You ask whether there is a way to know when the Word application is loaded. app.Quit(ref missing, ref missing, ref missing) Application() Īpp.Documents.Open( ref filename, ref missing, Object filename = missing = System.Reflection. Out in my client base will be a machine where that sleep value wont work. ![]() Is this a Word bug/setting, an interop setting/problem, or is there a way for me to receive an event of some sort when the Application object is in an intialized and working state? - Adding sleep statements in my code is not a good solution - somewhere The error raised on the Documents.Open call is I didn'tĮxperience the problem using a local User template location. The following code breaks, but if a sufficient delay is introduced it works. In the Trust Center set Word to trust network locations and add your new location (initially I thought that this would be the fix). To reproduce in Word 2010, configure your Word User Templates ![]() I've reproduced the problem in a simple test app. Our clients keep their Office User Templates on a network share and configure Word to use that location( Options | Advanced | File locations). The application was created a few years ago using the Office XP automation interface and works with Word 2002, 2003 and Word 2007, but not with Word 2010 under I have a C# (.Net 2.0) desktop application that uses COM interop to automate Word. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |