Tag: zoom

我应该如何增加使用Aspose单元的Excel打印输出页面的大小?

用户抱怨电子表格的打印太小,并且希望在页面上放大以便(更)清晰。 我需要改变什么来增加印刷区域的大小? 我有这个代码来设置打印function: private void ConfigureForPrinting(int finalRow) { string lastColumn = GetExcelTextColumnName(pivotTableSheet.Cells.Columns.Count); string printArea = String.Format("A1:{0}{1}", lastColumn, finalRow); pivotTableSheet.PageSetup.PrintArea = printArea; pivotTableSheet.PageSetup.Orientation = PageOrientationType.Landscape; pivotTableSheet.PageSetup.Zoom = 100; pivotTableSheet.PageSetup.FitToPagesWide = 1; pivotTableSheet.PageSetup.FitToPagesTall = 50; // "…with 1/2" margins" pivotTableSheet.PageSetup.LeftMargin = 0.5; pivotTableSheet.PageSetup.RightMargin = 0.5; pivotTableSheet.PageSetup.TopMargin = 0.5; pivotTableSheet.PageSetup.BottomMargin = 0.5; pivotTableSheet.PageSetup.HeaderMargin = 0.5; pivotTableSheet.PageSetup.FooterMargin = 0.5; […]

在没有Excel VBA中select的情况下设置缩放

是否有可能根据屏幕分辨率设置缩放级别没有Select ? 我已经按照代码: Sheets(1).Range("A1:AC1").Select ActiveWindow.Zoom = True 取自https://stackoverflow.com/a/19439177/1903793 所需的代码将如下所示: Range("A1:AC1").Width.Zoom=True 更新。 为什么我要避免select? 我的表具有基于用户设置的隐藏列。 因此,范围A1:AC1中的某些列是隐藏的。 我不能select单个列,因为这个特定的列可能被隐藏。 select触发事件。 当然,我可以禁用事件,但禁用事件有一些我想避免的副作用。