Size inserted image to fit in a table cell (Word) RRS feed

All replies

  • I've made some progress.  First I check in table properties if table is fixed or auto.  If it is fixed, I find the cell width and find the left and right margin for the cell (either from the cell property, table property or from the style).  Width and margins are in twip so I convert it to inches by dividing by 1440.  Divide it by image width in inches to get the ratio.  And finally convert to emu by multiplying imageWidth * 914400 * ratio (same for height).
    Tuesday, April 28, 2009 9:27 PM
  • I am glad you made some progress here. Let me know if you run into any other issues or if you have any other questions.

    Zeyad Rajabi
    Zeyad Rajabi (MS)
    Wednesday, May 6, 2009 6:41 AM