팩토리 » Api
xplussetsysdefaultprinter
Description
시스템에 기본 프린터를 변경하는 API입니다. 변경하고자 하는 프린터의 이름을
파라미터로 넘겨 줍니다.
Parameters
Parameters |
Type |
Description |
strPinterName |
STRING |
기본 프린터로 설정할 프린터 이름 |
Return Value
Type |
Description |
STRING |
성공/실패 여부 |
Remark
Example
function btnSetDefaultPrinter_on_mouseup()
{
var arrPrinters = factory.xplusgetsysprinter();
if(arrPrinters == null || arrPrinters.length <= 0) {
screen.alert("현재 시스템에 프린터가 존재 하지 않습니다.");
return;
}
// 프린터중 첫번째 프린터를 기본 프린터로 변경.
factory.xplussetsysdefaultprinter(arrPrinters[0]);
}
See Also
xplusgetsysdefaultprinter
xplusgetsysprinter
Viewer Ver.
9.1.1.1
Update Date
20210830