Hi,
I have an excel workbook, which has an vertical page break after column “Aug14”, and I also set printing setting fit to “0” page wide and “1” page tall. So I expect it will print two pages, and the first page will stop at column “Aug14”. The excel will print correctly based on the page break and scaling setting. Aspose print result will print in two pages as well, but not respect the page break.
Dim options As New Aspose.Cells.Rendering.ImageOrPrintOptions()
Dim pdlg As New PrintDialog
Dim wr As WorkbookRender
If pdlg.ShowDialog() = DialogResult.OK Then
printerName = pdlg.PrinterSettings.PrinterName
'Print the workbook.
options.PrintingPage = PrintingPageType.Default
wr = New WorkbookRender(MyWorkBook, options)
wr.ToPrinter(pdlg.PrinterSettings)
End If
I have attached the excel workbook, and also the results print from both Excel and using Apose, you can see the difference.
Please let me know if you have question.
Thanks,
Wei