Back to Devexpress

PrintTool.SavePrinterSettings(String) Method

windowsforms-devexpress-dot-xtraprinting-dot-printtool-dot-saveprintersettings-x28-system-dot-string-x29.md

latest1.6 KB
Original Source

PrintTool.SavePrinterSettings(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Saves the settings of the system default printer to the specified file.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.XtraPrinting.v25.2.dll

NuGet Package : DevExpress.Win.Printing

Declaration

csharp
public void SavePrinterSettings(
    string filePath
)
vb
Public Sub SavePrinterSettings(
    filePath As String
)

Parameters

NameTypeDescription
filePathString

A String value, specifying the name of the file (with a full path to it) to where the printer settings should be saved.

|

See Also

LoadPrinterSettings(String)

PrintTool Class

PrintTool Members

DevExpress.XtraPrinting Namespace