Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Error saving Word Document using Microsoft Word 12.0 Object Library

Updated: 26 May 2010 | 3 comments
e.houle@maestro.biz's picture
0 0 Votes
Login to vote

When I try to save a Word document using the following code VB6 Code

 ...
 if mObjWord.ActiveDocument.Sections(1).ProtectedForForms then mObjWord.ActiveDocument.Sections(1).ProtectedForForms = False
 call mObjWord.ActiveDocument.Saveas(MyFileName)
  ...
 
I got the error 5487: Permission denied

I also noticed that ~WRL*.tmp file are created and can not be deleted when SEP is activated.

When SEP is disabled, I get no problem: ~WRL*.tmp are created but they automaticly deleted (wich is the correct beavior)

Here is my environment:
 - Win XP SP3 with latest updates
 - MS Office Word 2007 12.0.6504.5000 SP2 MSO (12.0.6425.1000)
 - Symantec EndPoint Protection 11.0.4000.2295
 

Comments

Rafeeq's picture
25
Nov
2009
0 Votes 0
Login to vote

Hi

With respect to saving word files it was an issue with earlier versions and was fixed in MR4

Cannot save changes in Word 2000 files to FDD.
Fix ID:
1201116
Symptom: Word cannot complete the save due to a file permission error.
Solution: Modified the Auto Protect engine to prevent this issue from occurring

what are the components of symantec have you installed, just antivirus / antispyare ? or network threat protectiono too?

lot of issues are fixed with MU5, I would like you to upgrade atleast one system to MU5 release and check if issue perists.

check the release notes of MU5

http://service1.symantec.com/SUPPORT/ent-security.nsf/docid/2007121216360648

https://www-secure.symantec.com/connect/forums/migrating-mr5

Please don't forget to mark your thread solved with whatever answer helped you : ) Rafeeq

sandip_sali's picture
25
Nov
2009
0 Votes 0
Login to vote

Upgrade to RU 5

In this case I would suggest you to upgrade to RU5 may be on one machine and check whether the issue gets fixed. If it does then you can implement the same to the other machines as well.

Thanks & Regards Sandip C Sali

Grant_Hall's picture
26
Nov
2009
0 Votes 0
Login to vote

I am fairly certain that this

I am fairly certain that this is the same issue that Rafeeq is referring to, but since you are making your own API calls into the object library I can't be sure. What is the string MyFileName? Does this happen with any string you put in or is it only for a certain location? If it is happening for any pathname you put in then it is most likely the same issue Rafeeq is talking about. Also I feel the same as Sandip and Rafeeq that you should upgrade to RU5. It is a big step up from the version  you have, and if you are thinking about upgrading to Windows 7 in the future you will need RU5 because other versions have some small compatability issues.

Hope this helps,
Grant

Please don't forget to mark your thread solved with whatever answer helped you : )