Automatically resize pictures or shapes to fit a page

Started by Thiverdrive, January 15, 2018, 11:37:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thiverdrive

Hey there all
I have been all over the net trying to find a way to automatically fot a picture to pre-determened border on a visio page but so far no luck. Does anyone here know if this is even possible in Visio?

Paul Herber

Auto resizing a shape to do this is easy. Just set the Width and Height shapesheet cells to be formulae that reference the page width and height.
e.g. Width=ThePage!PageWidth-10mm
or similar.
If you can put the picture into a Visio shape then this is the way to do it.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Surrogate

Visio out-of-box, can't do it.
But if you write code in vba it can be available!

Thiverdrive

Thanks for the replies I have not played with the VBA side of visio ever so time to start I guess;)

wapperdude

#4
Couple things to consider...
1)  maintaining aspect ratio
2)  centering on page
3)  orientation:  portrait vs landscape
4)  how to invoke...
      a) automatic => suggests on drop.  Easily done.  But, limiting to just photo object...very difficult, if not impossible. Thus, all
          new objects (shapes) get resized
      b) semi-automatic => use combination of keys to run macro on selected object, e.g. <cntl>+<shift>+<H>.

Just some things to consider.

Wapperdude
Visio 2019 Pro

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 220 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1089KB.
Tokens: post-login.
Cache hits: 13: 0.00133s for 26,595 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]