|
|
|
date: Tue, 13 May 2008 21:18:01 -0700,
group: microsoft.public.visio.developer.shapesheet
back
ForeignData image sizing relative to the overall shape
(Visio 2003).
From a previous project, I have a mechanism for linking two shapes that are
printed on separate Visio pages that end up being printed back-to-back. As I
move the shape on the obverse page around, so the corresponding shape on the
reverse side moves so that it will always line up correctly on the printed
version.
My manager likes this and asked if it could be used to print out some little
'cards' that could be laminated and slipped into our ID badge holders. The
original 'card' data comes from a Word table and I created the two initial
shapes by cutting the necessary parts of the table and using 'paste special'
to add them to Visio. I then used a macro to link the two shapes together as
described above.
My problem is that I cannot find any relationship between the size of the
displayed data (which I think is held in the ForeignData part of the shape)
and the size of the shape itself. As I resize the shape (using the standard
shape resizing handles), the contained image jumps in size, following the
size change for a while and then jumping to something close to its original
size again.
I have found that setting the 'width' cell to some small value (1mm in my
test case) causes it value to jump back out to something like the correct
size when do this interactively, but causes all sorts of problems when
performed from VBA code.
Sometimes - but not always - after I've edited some of the Foreign Image
Info cells, the behaviour changes with the image staying the same size and
being clipped by the shape edge. However, I can't see anything that is
different in the shapesheet cells that would explain the different behaviour.
Because of the linkage between the two shapes, I need to be able to
initially set the sizes to the largest of the two before I establish the
linkage formulae.
I'm finding that there is almost no documentation or other information about
the foreign data side of a shape (at least I can't find it using Google
etc.). Therefore:
1) can someone point me to any documentation on how the foreign data image
is sized in relation to the overall shape
2) how can this be manipulated using VBA (as I've said, interactive and VBA
methods seem to produce different affects and I'm guessing its because of some
(event?) processing that can occur interactively but not between VBA
statements)
One I have this part nailed, then all of the rest of the processing happens
very nicely (my macro duplicates the shapes and lays them out on a page so
that it can be printed).
Thanks
Susan
date: Tue, 13 May 2008 21:18:01 -0700
author: Aussie Susan
|
|