Beispiel #1
1
 public ExcelPaperSize(ExcelInterop.XlPaperSize paperSize, ExcelInterop.XlPageOrientation orientation)
 {
     PaperSize = paperSize;
     Orientation = orientation;
 }
Beispiel #2
0
 public ExcelPaperSize(ExcelInterop.XlPaperSize paperSize, ExcelInterop.XlPageOrientation orientation)
 {
     PaperSize   = paperSize;
     Orientation = orientation;
 }
Beispiel #3
0
    //ОРИЕНТАЦИИ СТРАНИЦЫ

    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;
        }