PrinterSettings Constructor(Printer,PrintOptions)
Creates a new instance of PrinterSettings with a specific printer and print options.
Parameters
- printer
- The printer instance.
- printOptions
- The print options.
// Instantiate and configure a Printer object
var printer = new GrapeCity.ActiveReports.Win.Printing.Printer()
{
PrinterName = "YourPrinterName", // Specify the printer name
Landscape = true, // Set landscape orientation
// Additional printer configuration can be done here
};
// Configure custom print options
var printOptions = GrapeCity.ActiveReports.Printing.PrintOptions.CreateDefault();
printOptions.PageOrder = PageOrder.Vertical;
printOptions.PagesPerSheet = 2;
// Create a new instance of PrinterSettings with the custom printer and print options
var printerSettings = new GrapeCity.ActiveReports.PrinterSettings(printer, printOptions);
// Example: Use the configured printerSettings for printing
// Note: Actual printing code would go here, using the configured printerSettings