I am creating a spreadsheet which contains barcodes (based on a barcode font) using Aspose.Cells. If I go to Excel and do a QuickPrint (i.e.- don't change any settings), it prints exactly as desired. However, if I try to print it via the following Aspose code, the barcodes can't be scanned (they are too dark and run together), the margins are different, and some of the other formatting is off.
Here's the code snippet:
Dim r As Aspose.Cells.Rendering
Dim o As Aspose.Cells.Rendering.ImageOrPrintOptions = New Aspose.Cells.Rendering.ImageOrPrintOptions
Dim p As System.Drawing.Printing.PrinterSettings = New System.Drawing.Printing.PrinterSettings
Dim defPrinter As String = p.PrinterName
r = New Aspose.Cells.Rendering.SheetRender(xlWorkSheet, o) 'sheet was previously referenced and last used in xlWorkBook.Save(tmpPath)
I've tried modifying various settings without any luck. Can someone please explain why I get different results via Aspose? Thanks,