ReadOnly Visio Document

VISIO

    Sponsored Links

ReadOnly Visio Document

Postby avalon27 » Sat, 02 Jul 2005 18:43:33 GMT

Hi,
I would like to lock a visio document so it can't be modified by th
user. How can i write that in my Vb code?
I've tried something like that :

intRead = Visio.ActivePage.Document.ReadOnly
intRead = True

but it didn't work!
pleaz help!

thanx

Avalon2


Re: ReadOnly Visio Document

Postby John Marshall, MVP » Sat, 02 Jul 2005 22:09:57 GMT

There are several ways of locking a diagram and several ways to work around 
the locks. The easiest and most secure is to save the Visio drawing as a jpg 
or any other graphic format.

John...    Visio MVP

Need stencils or ideas?  http://www.**--****.com/ 
Need VBA examples?    http://www.**--****.com/ 
Common Visio Questions  http://www.**--****.com/ 







Re: ReadOnly Visio Document

Postby avalon27 » Sat, 02 Jul 2005 23:32:46 GMT

even if there are hyperlinks within the diagram? all of the shapes i'v
drawn are linked to other shapes in the same page


Re: ReadOnly Visio Document

Postby John Marshall, MVP » Sun, 03 Jul 2005 01:11:52 GMT

There is an option to save as a webpage which maintains some hyperlinks.

John...    Visio MVP

Need stencils or ideas?  http://www.**--****.com/ 
Need VBA examples?    http://www.**--****.com/ 
Common Visio Questions  http://www.**--****.com/ 







Similar Threads:

1.ReadOnly Visio page and Drawing control....

Hello All
 I have an application that has Visio Drawing control on each MDI child
form. There are few drawing control page which may be read-only. If user
does any action like resize shapes, move shapes, add/delete shapes etc,
application show messagebox about the page read only. After message box and
I need to undo the changes made by user or accept the changes based on
option selected by user. I have method that get call whenever there is
change within page called "PageChange()". In this method I have messagebox
that ask user to "AcceptChanges".
 I try following things but it does not work.

 1)  Code check the messagebox result and undo the changes. Code is
        DrawingControlDocument.Window.Application.Undo(); //No exception but
does not change the stuff.
 2)  Same code written in the VisioIdal event. But does not work.
 3)  Code check the messagebox result and undo the changes. Code is
        DrawingControlDocument.Window.Application.DoCmd( UnDoContant );
 4)  After changes if user use menu to undo the changes it works and code is
        DrawingControlDocument.Window.Application.Undo();

I really wonder how these thing is happen. Any one has solution, any
suggestions please answer.

Thanks

Padmakar Bhosale


2.Convert Powerpoiont document to a Visio document

I would like to convert a powerpoint document to Visio and be able to 
manipulate the converted visio document.  I'm currently using powerpoint 2002 
and visio 2002.  I tried cutting and pasting but the visio cut and past 
document will not allow me to make edits. 

3.Using Visio as template for "New Document" in Shared Documents

4.Print SVG Document in VB.Net using visio.Document object

5.how to transform a logical XML document into a visio document

I'm trying build a logical diagram of some servers and applications in our 
environment, and we want to pull information about their relatinoships stored 
a database.  This information just has high level info, like which server and 
applications talk to eachother.  we would like to export the model from the 
database in an XML format, and then "import" it into Visio, and have it 
create the shapes and connections in the document.  What would the best way 
to accomplish this?

6. Print SVG Document in VB.Net using visio.Document object

7. Converting visio documents to word document

8. Inserted visio 2003 document prints inverted in Word document



Return to VISIO

 

Who is online

Users browsing this forum: No registered users and 2 guest