Printing not respect page break and scaling setting correctly

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

Hi Wei,

Thanks for your posting and using Aspose.Cells.

We were able to observe this issue after executing your code with the latest version: Aspose.Cells for .NET 8.3.0.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-43187 - Printing does not respect page break and scaling setting correctly

Hi,

Thanks for your using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for .NET v8.3.0.2 and let us know your feedback.

The issues you have found earlier (filed as CELLSNET-43187) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.