Jaa


PrintJobSettings.deviceName Method

Definition

Overloads

deviceName(String, ClassRunMode)
deviceName()

Selects a printer or retrieves the deviceName of the selected printer.

deviceName(String)

deviceName(String, ClassRunMode)

public:
 virtual System::String ^ deviceName(System::String ^ _device, Microsoft::Dynamics::Ax::Xpp::ClassRunMode _runOn);
public virtual string deviceName (string _device, Microsoft.Dynamics.Ax.Xpp.ClassRunMode _runOn);
abstract member deviceName : string * Microsoft.Dynamics.Ax.Xpp.ClassRunMode -> string
override this.deviceName : string * Microsoft.Dynamics.Ax.Xpp.ClassRunMode -> string
Public Overridable Function deviceName (_device As String, _runOn As ClassRunMode) As String

Parameters

_device
String
_runOn
ClassRunMode

Returns

Applies to

deviceName()

Selects a printer or retrieves the deviceName of the selected printer.

public:
 virtual System::String ^ deviceName();
public virtual string deviceName ();
abstract member deviceName : unit -> string
override this.deviceName : unit -> string
Public Overridable Function deviceName () As String

Returns

The deviceName of the selected printer.

Remarks

The deviceName of a printer to be selected could be found by using the getPrinter method.

This job lists the available printers and their nonprintable area.

static void aaaKJ(args a) 
{ 
    printJobSettings pjs; 
    str printer; 
    int i; 
    pjs = new printJobSettings(); 
    for (i=1; i<=pjs.GetNumberOfPrinters(); i++) 
    { 
        printer = pjs.GetPrinter(i); 
        pjs.DeviceName(printer); 
        print "printer No. ",i, " has name ",  printer; 
        print "   left:  ", pjs.UnprintableLeft(),   "/100 mm"; 
        print "   right: ", pjs.UnprintableRight(),  "/100 mm"; 
        print "   top:   ", pjs.UnprintableTop(),    "/100 mm"; 
        print "   bottom:", pjs.UnprintableBottom(), "/100 mm"; 
    } 
    pause; 
}

Applies to

deviceName(String)

public:
 virtual System::String ^ deviceName(System::String ^ text1);
public virtual string deviceName (string text1);
abstract member deviceName : string -> string
override this.deviceName : string -> string
Public Overridable Function deviceName (text1 As String) As String

Parameters

text1
String

Returns

Applies to