【发布时间】:2018-08-13 20:56:36
【问题描述】:
我已将图片添加到 Word Doc 中:
var app = new Word.Application();
DocForPrint = app.Documents.Add();
Range docRange = DocForPrint.Range();
Word.InlineShape picShape = docRange.InlineShapes.AddPicture(imgPath);
现在我想像在 Word 编辑器中一样更改/设置它的 Absolute 大小
问题是我找不到它是否有属性,因为
picShape.Width = 50;
似乎是 pxl 大小。
你知道这是怎么做到的吗?
【问题讨论】:
-
你有 Application.CentimetersToPoints(21.89) 方法吗?这是来自 VBA。