1.sheet.Names.Add(new WorksheetNamedRange("Print_Titles", "=R3:R4", false));
//对打印页面进行设置,此处为设置每页的首行;
2.页面横向:sheet.Options.PageSetup.Layout.Orientation = Orientation.Landscape;
//对打印页面进行设置,此处为设置每页的首行;
2.页面横向:sheet.Options.PageSetup.Layout.Orientation = Orientation.Landscape;