草庐IT

FitToPagesWide

全部标签

c# - Excel 2007 PageSetup.FitToPagesWide 问题

虽然我一直在尝试使用C#在MicrosoftVisualStudio项目中为Excel2007设置Excel页面的页面缩放代码是这样的privatevoidSheet1_Startup(objectsender,System.EventArgse){PageSetup.FitToPagesWide=1;PageSetup.FitToPagesTall=1;PageSetup.Orientation=Microsoft.Office.Interop.Excel.XlPageOrientation.xlLandscape;PageSetup.PaperSize=Microsoft.Offi