public ExcelPaperSize(ExcelInterop.XlPaperSize paperSize, ExcelInterop.XlPageOrientation orientation) { PaperSize = paperSize; Orientation = orientation; }
public ExcelPaperSize(ExcelInterop.XlPaperSize paperSize, ExcelInterop.XlPageOrientation orientation) { PaperSize = paperSize; Orientation = orientation; }
//ОРИЕНТАЦИИ СТРАНИЦЫ public void SetOrientation(Excel.XlPageOrientation orientation) { _xlWorkSheet.PageSetup.Orientation = orientation; }
// Store original page settings private void getOrigSettings() { Excel.Worksheet activeWorksheet = ((Excel.Worksheet)ExcelApp.ActiveSheet); // Get original margin settings origLeftMargin = activeWorksheet.PageSetup.LeftMargin; origTopMargin = activeWorksheet.PageSetup.TopMargin; origRightMargin = activeWorksheet.PageSetup.RightMargin; origBotMargin = activeWorksheet.PageSetup.BottomMargin; // Get original orientation origOrientation = activeWorksheet.PageSetup.Orientation; // Get original font // Get original view information origZoom = (int)activeWorksheet.PageSetup.Zoom; }