caranya gini...
gak perlu pake shell

Open "\\computername\printer" For Output As #1

Print #1, "Test Print"
Close #1

=======================
http://www.fire888.com

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] Behalf Of aja maulan
Sent: Wednesday, December 19, 2007 4:27 PM
To: [email protected]
Subject: [Programmer-VB] Cetak ke printer dotmatrix lewat jaringan (LAN)


Mohon Share dari temen2!!!
saya mo cetak ke printer dotmatrix lewat jaringan

Kode yg saya pakai:
Shell "net use LPT1 \\computername\printer
Open "LPT1:" For Output As #1

Print #1, "Test Print"
Close #1
Shell "NET USE LPT1: /DELETE"

Kenapa yah ko tidak nge-Print ke printer!
tapi kalo saya jalankan perintah melalui DOS
perintah ini
C:\dir/w > prn
itu nge-Print.

Apakah saya salah kode. Mohon bantuan temen2!!?
share code nya yah!

Trims

Send instant messages to your online friends http://uk.messenger.yahoo.com


Wahana Programmer Groups Links

Yahoo! Groups Links



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 12/13/2007
9:15 AM

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 12/13/2007
9:15 AM

Kirim email ke