0% found this document useful (0 votes)
53 views1 page

Public Class Private Sub Byval As Byval As Handles

The document describes code for printing a voucher/receipt that displays customer and order details. It prints the table number, order number, list of ordered dishes from a datagrid, total amount, and thank you messages. The code loops through the datagrid rows and columns to print each dish on a new line. It also prints identifying text in blue fonts before relevant order information.

Uploaded by

Juan Jpayehuanca
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views1 page

Public Class Private Sub Byval As Byval As Handles

The document describes code for printing a voucher/receipt that displays customer and order details. It prints the table number, order number, list of ordered dishes from a datagrid, total amount, and thank you messages. The code loops through the datagrid rows and columns to print each dish on a new line. It also prints identifying text in blue fonts before relevant order information.

Uploaded by

Juan Jpayehuanca
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class frmVaucher Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.

DrawString("________________________________________GRACIAS POR RELIZAR SU PEDIDO______________________________________", SystemFonts.DefaultFont, Brushes.Blue, 50, 50) e.Graphics.DrawString("MESA:", SystemFonts.DefaultFont, Brushes.Black, 450, 100) e.Graphics.DrawString(mesa_escogida, SystemFonts.DefaultFont, Brushes.Black, 550, 100) e.Graphics.DrawString("================================================== ================================================", SystemFonts.DefaultFont, Brushes.Blue, 50, 225) e.Graphics.DrawString("ORDEN DE PEDIDO:", SystemFonts.DefaultFont, Brushes.Black, 50, 250) e.Graphics.DrawString(codpedido, SystemFonts.DefaultFont, Brushes.Black, 250, 250) e.Graphics.DrawString("=========================================LOS PLATOS ELIGIDOS SON=========================================", SystemFonts.DefaultFont, Brushes.Blue, 50, 355) Dim fila As Integer For columna = 0 To 3 For fila = 0 To frmComensal.dgvpedido.RowCount - 1 e.Graphics.DrawString(frmComensal.dgvpedido.Item(columna, fila).Value, SystemFonts.DefaultFont, Brushes.Black, 100 + columna * 100, 380 + fila * 20) Next Next e.Graphics.DrawString("__________________________________SU PEDIDO SERA ENTREGADO EN BREVE_______________________________________", SystemFonts.DefaultFont, Brushes.Blue, 50, 380 + fila * 20 + 10) e.Graphics.DrawString("TOTAL", SystemFonts.DefaultFont, Brushes.Blue, 550, 380 + fila * 20 + 30) e.Graphics.DrawString(frmComensal.txttotal.Text, SystemFonts.DefaultFont, Brushes.Blue, 600, 380 + fila * 20 + 30) End Sub Private Sub frmVaucher_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub PrintPreviewControl1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintPreviewControl1.Click End Sub End Class

You might also like