document protection

J

Jayashri

I have some trouble protecting my document from being opened by unauthorised people. I have the following code
dim mydoc as visio.documen
set mydoc = activedocumen
mydoc.password()="xxxxx
mydoc.protection("xxxxx") = visprotectpreview
mydoc.saveas "c:\xx.vsd
mydoc.clos
set mydoc=nothin

I would expect that next time when I open the document, it would prompt me for the password before opening it. But no such thing happens. I am able to open the document without any problems. Any reason why it happens and how can we achieve the protection of the document programmatically. I would appreciate very much if anyone can give me a solution. Thanks in advance

Jayashr
 
M

Mark Nelson [MS]

If you are using Visio 2003, the functionality was disabled. The problem is
that the feature is useless. The password can be extracted from the file
without too much trouble by a hacker.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.


Jayashri said:
I have some trouble protecting my document from being opened by
unauthorised people. I have the following code:
dim mydoc as visio.document
set mydoc = activedocument
mydoc.password()="xxxxx"
mydoc.protection("xxxxx") = visprotectpreviews
mydoc.saveas "c:\xx.vsd"
mydoc.close
set mydoc=nothing

I would expect that next time when I open the document, it would prompt me
for the password before opening it. But no such thing happens. I am able to
open the document without any problems. Any reason why it happens and how
can we achieve the protection of the document programmatically. I would
appreciate very much if anyone can give me a solution. Thanks in advance.
 
R

Randall Arnold

But isn't that true for Word and Excel, as well? I've (*ahem*) seen tools
on the internet that purport to do just that.

I don't think most business users mess with hacking and cracking tools,
though. The ones I know don't even know how to search for them (scary but
true)! So why not leave the feature in for the mainstream, legitimate
users?

Randall Arnold
 
M

Mark Nelson [MS]

Word and Excel have adopted a new protection technology called Information
Rights Management. The system is based on your Windows user credentials
rather than a simple password string.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Randall Arnold

Oh yeah: I remember testing that in the beta. I suppose Visio's adoption
will come later?

Randall Arnold
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top