Click here to Skip to main content
15,900,254 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i used a winword control component to open a word document inside the form .it works fine..but when i try to open the saved document it asks for a password .I havnt given a password anywhere and cannot open the doccument now.
i used the following code

WinWordControlMod1.SaveDocument(stri + ".doc")




thanks
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jul-13 1:23am    
Wow! No, this information is hardly enough. It can be something else, hard to say what...
—SA
Richard MacCutchan 24-Jul-13 3:42am    
If you have not directly added a password to this file then I can only assume that your code has a bug that has corrupted the file before you saved it. If you have the original file then you should be able to compare the two to try and diagnose the problem.
Maciej Los 24-Jul-13 12:17pm    
I have no idea what WinWordControlMod1 is...
Have you seen this: Documents.Open Method()[^]?
[no name] 24-Jul-13 19:31pm    
have you tried just leaving the password blank and yea not enough info.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900