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;
精彩评论