Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraPageSettings.AssignPrinterSettings(String, String, PrinterSettingsUsing) Method

Assigns the specified printer’s settings to the XtraPageSettings object.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

[EditorBrowsable(EditorBrowsableState.Always)]
public override void AssignPrinterSettings(
    string printerName,
    string paperName,
    PrinterSettingsUsing settingsUsing
)

#Parameters

Name Type Description
printerName String

A String value specifying the printer name. This value is assigned to the XtraPageSettingsBase.PrinterName property.

paperName String

A String value specifying the paper name. This value is assigned to the XtraPageSettingsBase.PaperName property.

settingsUsing PrinterSettingsUsing

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

#Remarks

Use this method to assign settings of the specified printer to the settings of the XtraPageSettings object.

See Also