Skip to main content

XtraPageSettingsBase.AssignPrinterSettings(String, String, PrinterSettingsUsing) Method

Assigns the printer settings to the current page settings according to the specified PrinterSettingsUsing value.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public virtual void AssignPrinterSettings(
    string printerName,
    string paperName,
    PrinterSettingsUsing settingsUsing
)

Parameters

Name Type Description
printerName String

A String value which specifies the name of the printer.

paperName String

A String value which specifies the name of the custom paper which is used in the printer that the document is going to be printed on.

settingsUsing PrinterSettingsUsing

A PrinterSettingsUsing object specifying which of the printer settings should be assigned.

Remarks

This method gets the settings of the specified printer and sets them to the page settings which have their settingsUsing values set to true. For instance, if the PrinterSettingsUsing.UsePaperKind value is set to true, then the paper kind settings for the default system printer will be set to the current page settings; otherwise, the old paper kind value is kept for the current page settings.

See Also