boa,
Podes tentar esta função
Public Function Abrir_Gaveta()
'encontrada na internet
'proprietário desconhecido
On Error Resume Next
LPT = FreeFile
Open Funcao.Configurar("Imprime", "Porta") For Output As #LPT
If MODELOIMPRESSORA = "BEMATECH" Then
Print #LPT, Chr$(27) + Chr$(118) + "2"
Print #LPT, Chr$(27) + Chr$(118) + Chr$(140)
ElseIf MODELOIMPRESSORA = "DARUMA" Then
Print #LPT, Chr$(27) + Chr$(112)
ElseIf MODELOIMPRESSORA = "EPSON" Then
Print #LPT, Chr$(27) + Chr$(112) + Chr$(0) + Chr$(48) + Chr$(0) + Chr$(255)
ElseIf MODELOIMPRESSORA = "ELGIN" Then
Print #LPT, Chr$(27) + Chr$(118) + "n"
Print #LPT, Chr$(27) + Chr$(118) + Chr$(110)
Else
Print #LPT, Chr$(27) + Chr$(118) + "2"
Print #LPT, Chr$(27) + Chr$(118) + Chr$(140)
Print #LPT, Chr$(27) + Chr$(112)
Print #LPT, Chr$(27) + Chr$(112) + Chr$(0) + Chr$(48) + Chr$(0) + Chr$(255)
End If
Close #LPT
End Function