Ho una stampante per etichette collegata con un cavo seriale ad un PC.
L'etichetta è memorizzata all'interno della stampante ed ho utilizzato il comando MSComm1 per inviare il file per la stampa dell'etichetta.
Questo è il comando:
Dim Stringa As String
Stringa = vbCrLf & _
"FR" & Chr$(34) & "Anichini" & Chr$(34) & vbCrLf & _
"?" & vbCrLf & _
Text6.Text & vbCrLf & _
Text6.Text & vbCrLf & _
Text5.Text & vbCrLf & _
Mid(Text3, 1, 15) & vbCrLf & _
Text34.Text & vbCrLf & _
Mid(Text3, 16, 26) & vbCrLf & _
Text35.Text & vbCrLf & _
"P1" & vbCrLf
MSComm1.PortOpen = True
MSComm1.Output = Stringa
MSComm1.PortOpen = False
Il mio problema è che vorrei poter stampare anche da altri pc collegati in rete.
Come è possibile inviare una striga come questa alla porta seriale di un qualunque PC collegato inrete?
Grazie per l'aiuto