Board index » delphi » Word and Popup Messages
|
Justin
Delphi Developer |
Word and Popup Messages2004-04-28 03:06:00 PM delphi207 Hi, we have an application that loops through all the MS Office files on a system and extracts the text for search purposes, using a TWordApplication server. However on some documents Word throws up an error message, about macros. The caption of the message is "Microsoft Visual Basic" and the text is "An error occured while loading this document. Do you want to continue loading the project" This is fine if there is an operator sitting there, they can click the no button and it keeps going. However this is a batch process and runs unatended, so and this halts the process. Even setting WordApplication.DisplayAlerts := wdAlertsNone doesn't help here. Does anyone know a way to disable VBA on documents being opened, either in code or some setting in MS Word? I presume this is the problem. Thanks Justin |
