在Aspose.Cells中打印工作簿
Contents
[
Hide
]
Aspose.Cells - 打印工作簿
完成创建电子表格后,您可能希望打印工作表的硬拷贝以满足您的需求。在打印时,MS Excel会假定您要打印整个工作表区域,除非您指定您的选择。
打印工作表
C#
//Instantiating a Workbook object
Workbook workbook = new Workbook("../../data/test.xlsx");
//Create an object for ImageOptions
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
//Get the first worksheet
Worksheet sheet = workbook.Worksheets[0];
//Create a SheetRender object with respect to your desired sheet
SheetRender sr = new SheetRender(sheet, imgOptions);
//Print the worksheet
sr.ToPrinter("Samsung ML-1520 Series");
下载运行代码
从以下所列的社交编码站点下载打印工作簿 表单:
要了解更多详细信息,请访问打印工作簿。