Skip to main content
A newer version of this page is available. .

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.v18.2.Core.dll

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