本文介绍了Word文档中的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我打开ms-word文档时,此代码无法显示确切的磅数.
This code does not show me the exact size in points when i open a ms-word document.
Shape shpCanvas = oDoc.Shapes.AddCanvas(0, 0, 300, 300, ref oMissing);
正如我上面的代码,我为高度和宽度定义了300个点.但是,当我打开文档时,它将显示300磅的精确度.
As i the above code i define 300 points for height as well as for width. but when i open a document it will show me that exact 300 point it will show me more than that.
推荐答案
Shape shpCanvas = oDoc.Shapes.AddCanvas(0, 0, 300, 300, ref oMissing);
shpCanvas.MinWidth = xxx;
shpCanvas.MinHeight = xxx;
这篇关于Word文档中的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!