Public Function FindPrinterPort(Port As String) As BooleanDemikian VB6 kode untuk mencari port tertentu dari seluruh printer port yang ada.
Dim P As Printer, Found As Boolean
For Each P In Printers
If Printer.Port = Port & ":" Then
Found = True
Exit For
End If
Next
FindPrinterPort = Found
End Function
Sunday, June 17, 2012
VB6 Code - Mencari seluruh Printer Port
Lebih tepatnya mencari port printer tertentu dari seluruh printer port yang ada menggunakan kode VB6. Adapun kode VB6 untuk mencari port tertentu dari seluruh printer port yang ada adalah sebagai berikut:
Labels:
Printer