Free Support Forum - aspose.com

Using the SheetToPrinter method

Does Aspose.Cells v 4.5.0 have a method to determine the default PrinterName for the computer running the application?

Hi,

Well, there is no such api for the task yet, we will look into it soon.

Thank you.

Hi,

Please get the printer name with the following codes :

System.Drawing.Printing.PrinterSettings.StringCollection printers= System.Drawing.Printing.PrinterSettings.InstalledPrinters;
for (int i = 0; i < printers.Count; i++)
{
Console.WriteLine(printers[i]);
}