Re: View on opening file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Rita,

Not really, at least not without some code and then you have no guarantee that your users will have code enabled. If code is an option then you might want to have a look at this post which deals with some similar issues:

http://visualsignals.typepad.co.uk/vislog/2008/04/synchronizing-p.html

In your case you could just paste the following code into your 'ThisDocument' class:

Private Sub Document_DocumentOpened(ByVal doc As IVDocument)
ActiveWindow.Zoom = 0.75
End Sub

....or...

ActiveWindow.ViewFit = visFitPage

....depending on what you're after.

If you've not tried any code before then you don't be put off. Have a read of this post and let me know if you have any questions:

http://visualsignals.typepad.co.uk/vislog/2007/10/just-for-starte.html

Best regards

John


John Goldsmith (Visio MVP)
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk

"RitaK" <RitaK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1FD5A9D8-1C36-4D52-9EB4-7657380B86C2@xxxxxxxxxxxxxxxx
I have a Visio file that is going to be used by many people as a pathway into
work areas.

Is there any way that I can lock it so that the document always opens at the
first page and in 75% view?

Any help would be much appreciated.

Thanks

Rita

.



Relevant Pages