Visio Guy

Visio Discussions => Programming & Code => Topic started by: charlykuntz on February 20, 2013, 05:59:44 PM

Title: Lock page size
Post by: charlykuntz on February 20, 2013, 05:59:44 PM
Hi all,

is it possible to lock the page size so the user can't resize it?

Regards,

charly.
Title: Re: Lock page size
Post by: Paul Herber on February 20, 2013, 06:32:04 PM
I'm without Visio this evening so can't try it, but I'll guess that putting a =guard() around the appropriate setting in the page shapesheet might do it.
Title: Re: Lock page size
Post by: charlykuntz on June 01, 2015, 09:22:55 AM
Hello,

I have to disinter this old topic because I have some troubles with the page size again. I followed Paul's approach and put a GUARD function around PageWidth and PageHeight and at a first glance this worked fine (Thanks, Paul!). Today I recognized that the GUARD only locks the page size itself, but when I try resize at the left or lower end of the the whole page moves and all shape coordinated are changing as well. To avoid this behavior I already tried GUARDS in the RulerOrigin and GridOrigin cells but without success. Is there a way to disallow all page changes?

Regards,

charly.