F
Fabio Barreiro
Hi!
I can't get to insert an image into Microsoft Word and resize it. In fact,
the picture is inserted, but can't resize it after that. The image is beeing
inserted into a table. I don't know if that makes any difference. here's the
code
public void InserirImagemTabela(int pIdTable, int pRow, int pCol, string
pPathImage)
{
Word.Cell cell = oDoc.Tables[pIdTable].Cell(pRow, pCol);
object oGuardarImagemNoDoc = true;
Word.InlineShape ils = cell.Range.InlineShapes.AddPicture(pPathImage, ref
oMissing, ref oGuardarImagemNoDoc, ref oMissing);
ils.LockAspectRatio = Microsoft.Office.Core.MsoTriState.msoTrue;
ils.ScaleHeight = 200.0F;
ils.ScaleWidth = 300.0F;
}
any help?
I can't get to insert an image into Microsoft Word and resize it. In fact,
the picture is inserted, but can't resize it after that. The image is beeing
inserted into a table. I don't know if that makes any difference. here's the
code
public void InserirImagemTabela(int pIdTable, int pRow, int pCol, string
pPathImage)
{
Word.Cell cell = oDoc.Tables[pIdTable].Cell(pRow, pCol);
object oGuardarImagemNoDoc = true;
Word.InlineShape ils = cell.Range.InlineShapes.AddPicture(pPathImage, ref
oMissing, ref oGuardarImagemNoDoc, ref oMissing);
ils.LockAspectRatio = Microsoft.Office.Core.MsoTriState.msoTrue;
ils.ScaleHeight = 200.0F;
ils.ScaleWidth = 300.0F;
}
any help?