D
Daniel Boggs
We have developed a Word add-in where we need to determine
the location of a picture (Shape object) relative to the
edges of the page it is on. We have been able to do this
in general, with code something like the following:
theShape.RelativeHorizontalPosition =
Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPosit
ionPage;
theShape.RelativeVerticalPosition =
Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionP
age;
float x = theShape.Left;
float y = theShape.Top;
However, if the shape happens to be within/over a table,
the position returned is with respect to the table cell,
instead of with respect to the edges of the page (this
appears to be a bug).
I have not discovered ANY way to determine the location of
such images with respect to the page. This is very bad
news for our application.
Does anyone know of any way to determine the location of
images within tables, with respect to the page?
Thanks,
Daniel Boggs
the location of a picture (Shape object) relative to the
edges of the page it is on. We have been able to do this
in general, with code something like the following:
theShape.RelativeHorizontalPosition =
Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPosit
ionPage;
theShape.RelativeVerticalPosition =
Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionP
age;
float x = theShape.Left;
float y = theShape.Top;
However, if the shape happens to be within/over a table,
the position returned is with respect to the table cell,
instead of with respect to the edges of the page (this
appears to be a bug).
I have not discovered ANY way to determine the location of
such images with respect to the page. This is very bad
news for our application.
Does anyone know of any way to determine the location of
images within tables, with respect to the page?
Thanks,
Daniel Boggs