Tag: margin

C#Excel(2003)互操作 – 边距不对应input值?

我正在使用dotNET C#与Excel 2003进行通信。 我正在尝试更改文档的打印边距 ,但是我input的值不对应于Excel使用的边距值。 xls.PageSetup setup = ws.PageSetup; setup.Orientation = xls.XlPageOrientation.xlLandscape; //Standard margins (Top – Bottom – Left – Right): // 2.5 – 2.5 – 1.9 – 1.9 setup.BottomMargin = 1.0; setup.TopMargin = 1.0; setup.LeftMargin = 1.0; setup.RightMargin = 1.0; //Excel gives me: 0.0 – 0.0 – 0.0 – 0.0 setup.BottomMargin = 20.0; setup.TopMargin […]