开发者

Setting Excel FitToPagesWide to "Automatic" in C# (VTSO)

When I record a开发者_开发百科 macro in excel to set the FitToPagesTall = 1 and leave FitToPagesWide as "Automatic" it sets FitToPagesWide to 0. However this errors when in c# (using VSTO).

sheet.PageSetup.FitToPagesWide=0;

Any ideas? Tried setting to NULL to no avail.


Found it.

Have to set to false.

sheet.PageSetup.FitToPagesWide = false;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜