cek default printer

FUNCTION Boolean GetDefaultPrinterA(REF String pszBuffer, REF Long pcchBuffer) library “winspool.drv”  Alias for “GetDefaultPrinterA;ansi”

String ls_printer
Long ll_len
ls_printer = space(100)
ll_len = Len(ls_printer)
GetDefaultPrinterA(ls_printer, ll_len)

messagebox(‘info’, ls_printer)

1 thought on “cek default printer

Leave a Reply

Your email address will not be published. Required fields are marked *