Sie sind auf Seite 1von 3

For X = 1 To Me.FlexFac.

Rows - 1
Printer.Print Tab(0); .FlexFac.TextMatrix(X, 3); Tab(5); .FlexFac.TextMatrix(X,
2); Tab(35 - Len(Format(.FlexFac.TextMatrix(X, 4), "###,##0.00"))); Format(.Flex
Fac.TextMatrix(X, 4), "###,##0.00"); Tab(50 - Len(Format(.FlexFac.TextMatrix(X,
6), "###,##0.00"))); Format(.FlexFac.TextMatrix(X, 6), "###,##0.00")
Next
Printer.Print Tab(0); "------------------------------------------------------------------"
Printer.Print Tab(20); "SubTotal : "; Tab(50 - Len(Format(.LabelST.Caption, "###
,##0.00"))); Format(.LabelST.Caption, "###,##0.00")
Printer.Print Tab(20); "Descuento : "; Tab(50 - Len(Format(.LabelDescuento.Capti
on, "###,##0.00"))); Format(.LabelDescuento.Caption, "###,##0.00")
Printer.Print Tab(20); "Flete : "; Tab(50 - Len(Format(.LabelFlete.Caption, "###
,##0.00"))); Format(.LabelFlete.Caption, "###,##0.00")
Printer.Print Tab(20); "Igv (18%) : "; Tab(50 - Len(Format(.LabelIGV.Caption, "#
##,##0.00"))); Format(.LabelIGV.Caption, "###,##0.00")
Printer.Print Tab(20); "Total : "; Tab(50 - Len(Format(.LabelTotal.Caption, "###
,##0.00"))); Format(.LabelTotal.Caption, "###,##0.00")
Printer.Print Tab(5); ""
Printer.Print Tab(0); "Gracias por su Compra!!!"
Printer.Print Tab(5); ""
Printer.Font.Size = 6
Printer.Print Tab(5); "Usuario : " & FormMenu.LabelUser.Caption
Printer.Print Tab(5); "Impreso : " & Date & " " & Time
Printer.EndDoc
End With
End If
Printer.Font.Size = 8
Printer.Font.Bold = True
Printer.Font.Name = "A11"
Printer.Print Tab(0); VbEmpresa
Printer.Print Tab(20); Documento
Printer.Print Tab(10); Format(Date, "dddd, d mmm, aaaa")
Printer.Font.Bold = False
Printer.Print Tab(5); ""
Printer.Print Tab(5); ""
Printer.Print Tab(0); "Cliente : " & Me.LabelNombres.Caption
Printer.Print Tab(0); "RUC : " & Me.TxtRuc.Text
Printer.Print Tab(5); ""
Printer.Print Tab(0); "------------------------------------------------------------------"
Printer.Print Tab(0); "Cant."; Tab(8); "Detalle"; Tab(30); "Pre.U."; Tab(42); "I
mporte"
Printer.Print Tab(0); "------------------------------------------------------------------"
Printer.Print Tab(5); ""
For X = 1 To Me.FlexFac.Rows - 1
Sub Imprimir()
Dim X As Long
If MsgBox("Desea imprimir Ticket?", 324, VbTitulo) = vbYes Then
Documento = Me.TxtSigla.Text & Format(Me.TxtSerie.Text, "000") & "-" & Format(Tx
tNumero.Text, "00000000")
With Me
End Sub

Sub ObtenerNumFactura(Accion As Integer)


Dim t, nomfichero As String, L As Long
Dim boleta As String
Dim mensa As String
Dim LogFile
On Error GoTo Abrerror
mensa = "No se encuentra el archivo fecha.dat"
'el numero de factura lo puedo ir guardando en el registro
'de WIN o bien en un archivo como en este caso
'Accion 1 = leer
'Accion 2 = grabar
If Accion = 1 Then
nomfichero = App.Path & "\fecha.dat"
Open nomfichero For Input As #1
L = FileLen(nomfichero)
boleta = Input(L, #1)
NumSig = Val(boleta) + 1
Close #1
GoTo finAbrir
Else
LogFile = FreeFile
nomfichero = App.Path & "\fecha.dat"
Open nomfichero For Output As #LogFile
Print #LogFile, Trim(NumSig) 'escribo el numero de ultima factura
Close #LogFile
End If
Begin VB.Label Label4
Caption
=
BeginProperty Font
Name
Size
Charset
Weight
Underline
Italic
Strikethrough
EndProperty
Height
=
Left
=
TabIndex
=
Top
=
Width
=
End
Begin VB.Label Label2
Caption
=
BeginProperty Font
Name
Size
Charset
Weight
Underline
Italic
Strikethrough
EndProperty
Height
=
Left
=
TabIndex
=

"Cant:"
=
=
=
=
=
=
=

"MS Sans Serif"


8.25
0
700
-1 'True
0 'False
0 'False
255
120
5
2400
495

"Factura del cliente"


=
=
=
=
=
=
=

"Kabel Bk BT"
12
0
700
0 'False
0 'False
0 'False
375
600
2

Top
Width

=
=

End
Begin VB.Label Label1
Caption
=
BeginProperty Font
Name
Size
Charset
Weight
Underline
Italic
Strikethrough
EndProperty
Height
=
Left
=
TabIndex
=
Top
=
Width
=
End
End

0
2775
"Cliente:"
=
=
=
=
=
=
=

"MS Sans Serif"


8.25
0
700
0 'False
0 'False
0 'False
255
120
0
840
735

Das könnte Ihnen auch gefallen