PDA

View Full Version : [SOLVED:] Office automation strange saveas problem



Movian
06-27-2014, 09:01 AM
Hey so we have two workstation with a strange issue.

we use word to automate the generation of a diagram and then save as a web page causing word to generated the image separately so the image can be used directly.

we us the .activedocument.saveas to do the saving and this normally works fine.


.ActiveDocument.saveas CurrentProject.path + "\Tools\auto.html", 10, , , , , , , False, False

However on two workstations (windows 8.1) running office 2007 enterprise word. When this command is run word asks for the save location even though it was passed. All our other machines (several hundred) are running fine... just wanted to know if anyone had any ideas of where to look for what would be causing this.

as a note we normally copy the file after saving from \auto_files\image001.gif

Movian
06-27-2014, 01:23 PM
Found the solution after hours of searching!

Apparently Acer machines ship with an extra word plugin that can cause an issue with .activedocument.saveas

http://social.msdn.microsoft.com/Forums/office/en-US/1b8282a5-1c3f-41d4-93dd-39d084fad13d/can-not-get-he-activedocumentsaveas2-method-to-work-on-word-2013?forum=worddev

Disabling the plugins "Acer Docs Word Addin" and "AcerCloud Word Addin" resolved the problem preventing the saveas from functioning correctly.