, "T")
If respuesta Then respuesta = Me.IF1.CloseInvoice("T", "A", "")
Case 2
'dnf
respuesta = Me.IF1.OpenNoFiscal
If respuesta Then respuesta = Me.IF1.SendNoFiscalText("12345678")
If respuesta Then respuesta = Me.IF1.CloseNoFiscal
Case 3
'DNFH TC Y OS
respuesta = Me.IF1.DNFHCreditCard("VISA", "12", "PEPE", "991231", "2
3", "46", "57", "89", "CONTA", "100", "2", "PESOS", "2", "4", "5", "7", "8", "44
", "P", "P", "P")
If respuesta Then respuesta = Me.IF1.DNFHDrugstore("MEDICUS", "CO 1"
, "CO 2", "CO 3", "123", "PEP", "991030", "ADRESS", "ADDRESS 2", "NADA", "12", "
EXTRA 1", "EXTRA 2", "P", "P", "P", "P", "P")
Case 4
'Hora y Fecha
respuesta = Me.IF1.SetGetDateTime("S", Format(Date, "YYMMDD"), Forma
t(Time, "HHMMSS"))
If respuesta Then respuesta = Me.IF1.SetGetDateTime("G")
If respuesta Then MsgBox "La fecha y la hora actuales de la impresor
a son: " & Me.IF1.AnswerField_3
Case 5
'cajon
respuesta = Me.IF1.OpenCashDrawer("1")
If respuesta Then respuesta = Me.IF1.OpenCashDrawer("2")
Case 6
'header /trailer
respuesta = Me.IF1.SetGetHeaderTrailer("S", "1", "PRUEBA HEADER")
If respuesta Then respuesta = Me.IF1.SetGetHeaderTrailer("G", "1")
If respuesta Then MsgBox "El header obtenido es : " & Me.IF1.AnswerF
ield_4
Case 7
respuesta = Me.IF1.Status
Case 8
'dnf por Slip
respuesta = Me.IF1.SelectSlip
If respuesta Then respuesta = Me.IF1.SetPaperSize(50, 88)
If respuesta Then MsgBox "Inserte una hoja en la entrada de Slip", v
bInformation, "ATENCION"
If respuesta Then respuesta = Me.IF1.PrepareSlip
If respuesta Then MsgBox "Se imprimir un documento no fiscal por slip
", vbInformation, "ATENCION"
If respuesta Then respuesta = Me.IF1.OpenSlipNoFiscal
If respuesta Then respuesta = Me.IF1.SendNoFiscalText("
E J E
M P L O")
If respuesta Then respuesta = Me.IF1.SendNoFiscalText("S L I P N O
F I S C A L")
If respuesta Then respuesta = Me.IF1.SendNoFiscalText(" P O R O C
X F I S C A L")
If respuesta Then respuesta = Me.IF1.CloseNoFiscal
Case 9
'Factura
respuesta = Me.IF1.OpenInvoice("F", "C", "A", "1", "P", "12", "I", "
I", "PEPE", "LE BOU", "CUIT", "30614104712", "N", "LA", "PAMPA", "98", "REM 1",
"REM 2", "C")
If respuesta Then respuesta = Me.IF1.SendInvoiceItem("ARTICULO 1", "
1000", "100", "2100", "M", "0", "0", "EXTRA", "EXTRA", "EXTRA", "1050", "0")
'If respuesta Then respuesta = Me.if1.GetInvoiceSubtotal("P", "LINDO
SUB")
If respuesta Then respuesta = Me.IF1.SendInvoicePayment("PAGO1", "20
0", "T")
If respuesta Then respuesta = Me.IF1.CloseInvoice("F", "A", "HOLA")
Case 10
'
respuesta = Me.IF1.OpenInvoice("F", "C", "A", "1", "P", "12", "I",
"I", "PEPE", "LE BOU", "CUIT", "30614104712", "N", "LA", "PAMPA", "98", "REM 1",
"REM 2", "C")
'
If respuesta Then respuesta = Me.IF1.SendInvoiceItem("ARTICULO 1",
"1000", "100", "2100", "M", "0", "0", "EXTRA", "EXTRA", "EXTRA", "1050", "0")
'
'If respuesta Then respuesta = Me.if1.GetInvoiceSubtotal("P", "LIND
O SUB")
'
If respuesta Then respuesta = Me.IF1.SendInvoicePayment("PAGO1", "2
00", "T")
'
If respuesta Then respuesta = Me.IF1.CloseInvoice("F", "A", "HOLA")
Case 11 'setea diseo de factura
respuesta = SeteoFactura(Me.IF1)
Case 12 'Factura con transporte
respuesta = Me.IF1.OpenInvoice("F", "C", "A", "1", "P", "12", "I", "
I", "PEPE", "LE BOU", "CUIT", "30614104712", "N", "LA", "PAMPA", "98", "REM 1",
"REM 2", "C")
If respuesta Then respuesta = Me.IF1.SendInvoiceItem("ARTICULO 1", "
1000", "100", "2100", "M", "0", "0", "EXTRA", "EXTRA", "EXTRA", "1050", "0")
If respuesta Then respuesta = Me.IF1.SendInvoiceItem("ARTICULO 2", "
1000", "1200", "2100", "M", "0", "0", "", "", "", "1050", "0")
If respuesta Then respuesta = Me.IF1.TransportClose
If respuesta Then MsgBox "Coloque la siguiente hoja"
If respuesta Then respuesta = Me.IF1.TransportOpen
If respuesta Then respuesta = Me.IF1.SendInvoiceItem("ARTICULO 3", "
1000", "1000", "2100", "M", "0", "0", "", "", "", "1050", "0")
'If respuesta Then respuesta = Me.if1.GetInvoiceSubtotal("P", "LINDO
SUB")
If respuesta Then respuesta = Me.IF1.SendInvoicePayment("PAGO1", "30
00", "T")
If respuesta Then respuesta = Me.IF1.CloseInvoice("F", "A", "HOLA")
End Select
Screen.MousePointer = 1
'Las dos lneas que siguen creo que las agregu yo.
MsgBox "respuesta = " & respuesta & Chr$(13) & "FiscalStatus = " & Me.IF1.Fi
scalStatus & Chr$(13) & "PrinterStatus = " & Me.IF1.PrinterStatus
MsgBox "AnswerField_3: " & Me.IF1.AnswerField_3 & vbCrLf & "AnswerField_4: "
& Me.IF1.AnswerField_4 & vbCrLf & "AnswerField_5: " & Me.IF1.AnswerField_5 & vb
CrLf & "AnswerField_6: " & Me.IF1.AnswerField_6 & vbCrLf & "AnswerField_7: " & M
e.IF1.AnswerField_7 & vbCrLf & "AnswerField_8: " & Me.IF1.AnswerField_8 & vbCrLf
& "AnswerField_9: " & Me.IF1.AnswerField_9 & vbCrLf & "AnswerField_10: " & Me.I
F1.AnswerField_10 & vbCrLf & "AnswerField_11: " & Me.IF1.AnswerField_11 & vbCrLf
& "AnswerField_12: " & Me.IF1.AnswerField_12 & vbCrLf & "AnswerField_13: " & Me
.IF1.AnswerField_13 & vbCrLf & "AnswerField_14: " & Me.IF1.AnswerField_14 & vbCr
Lf & "AnswerField_15: " & Me.IF1.AnswerField_15 & vbCrLf & "AnswerField_16: " &
"Puerto"
"COM 1"
"COM 2"
"COM 3"
End Function
Option Explicit
Function SeteoFactura(PrinterOCX As PrinterFiscal) As Boolean
' **************************************************************************
' Propiedad intelectual EPSON ARGENTINA S.A.
' Programador: Gomez Guillermo
' Este software se entrega con fines didcticos y sin garantia alguna.
' EPSON NO ASUME responsabilidad legal alguna. El programador usa esta informacin
' bajo su propio riesgo y responsabilidad.
' **************************************************************************
'Ejemplo de seteo de Zona, Headers y Trailers para una factura
'TAMAO : Form.continuo 12'' x 10''
'IMPRESOR: LX-300 Fiscal, FX-880 Fiscal
'PrinterOCX : es el objeto PrinterFiscal (OCX) a travez del cual
'
se accede a la impresora fiscal
Dim Continuar As Boolean
End If
'** ZONA(060) Zona de detalle de venta
If Continuar Then
Continuar = PrinterOCX.SetZone(60, 1, 23, 87, 42)
End If
'** ZONA(061) Cantidad Item
If Continuar Then
Continuar = PrinterOCX.SetZone(61, 1, 23, 12, 42)
End If
'** ZONA(062) Descripcin Item
If Continuar Then
Continuar = PrinterOCX.SetZone(62, 14, 23, 34, 42)
End If
'** ZONA(063) Precio Unitario Item
If Continuar Then
Continuar = PrinterOCX.SetZone(63, 36, 23, 48, 42)
End If
'** ZONA(064) Tasa de IVA Item
If Continuar Then
Continuar = PrinterOCX.SetZone(64, 50, 23, 59, 42)
End If
'** ZONA(065) Tasa Ajuste Variable Item
If Continuar Then
Continuar = PrinterOCX.SetZone(65, 61, 23, 70, 42)
End If
'** ZONA(066) Precio total Item
If Continuar Then
Continuar = PrinterOCX.SetZone(66, 72, 23, 87, 42)
End If
'** Esta instruccion configura el offset que se usar para imprimir los subtot
ales
'** debe ser menor o igual a las filas de la zona 60, por omisin se toma
'** las filas de la zona 60
If Continuar Then
Continuar = PrinterOCX.SetPreference("P", "C", "O", "901", "0", "20")
End If
'** ZONA(070) Mensajes de advertencia fiscal
If Continuar Then
Continuar = PrinterOCX.SetZone(70, 1, 23, 87, 42)
End If
'** ZONA(081) Descripcin Percepcion de IVA RI
If Continuar Then
Continuar = PrinterOCX.SetZone(81, 33, 23, 41, 49)
End If
'** ZONA(082) Monto Percepcion de IVA RI
If Continuar Then
Continuar = PrinterOCX.SetZone(82, 43, 23, 54, 49)
End If
'** ZONA(083) Tasa de acrecentamiento RNI
If Continuar Then
Continuar = PrinterOCX.SetZone(83, 33, 23, 41, 49)
End If
'** ZONA(084) Monto de acrecentamiento RNI
If Continuar Then
Continuar = PrinterOCX.SetZone(84, 43, 23, 54, 49)
End If
'** ZONA(085) Descr.otras percep.
If Continuar Then
Continuar = PrinterOCX.SetZone(85, 56, 23, 62, 49)
End If
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 53,
End If
'** HEADER/TRAILER (54) Domicilio Fiscal
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 54,
End If
'** HEADER/TRAILER (55) Domicilio Fiscal - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 55,
End If
'** HEADER/TRAILER (57) Impuestos Vendedor
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 57,
End If
'** HEADER/TRAILER (58) Impuestos Vendedor - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 58,
End If
'** HEADER/TRAILER (59) Impuestos Vendedor - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 59,
End If
'** HEADER/TRAILER (60) Impuestos Vendedor - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 60,
End If
'** HEADER/TRAILER (61) Impuestos Vendedor - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 61,
End If
'** HEADER/TRAILER (62) Fecha de inicio de actividades
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 62,
es 01/01/2000")
End If
'** HEADER/TRAILER (63) Leyendas Comerciales - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 63,
End If
'** HEADER/TRAILER (64) Leyendas Comerciales - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 64,
End If
'** HEADER/TRAILER (65) Leyendas Comerciales - Vacio
If Continuar Then
Continuar = PrinterOCX.SetGetHeaderTrailer("S", 65,
End If
"Belgrano 951")
"Capital Federal")
Chr(127))
"Ingresos Brutos")
Chr(127))
Chr(127))
Chr(127))
Chr(127))
"Inicio de actividad
Chr(127))
Chr(127))
Chr(127))
SeteoFactura = Continuar
'
'
'
'
'
**************************************************************************
Este software se entrega con fines didcticos y sin garantia alguna.
EPSON NO ASUME responsabilidad legal alguna. El programador usa esta informacin
bajo su propio riesgo y responsabilidad.
**************************************************************************
End Function