JavaScript - Impresion sale solo en el Servidor

 
Vista:

Impresion sale solo en el Servidor

Publicado por Giancarlo (2 intervenciones) el 18/08/2016 17:47:34
Buen dia, tengo un problema pues la impresion que manejo sale solamente en el servidor y no en las estaciones que tienen sus respectivas impreioras, la aplicaion esta desarrollado con webforms vb.net y aspx, el codigo que tengo solo funciona en el server


todo el codigo sale bien pero no imprime de manera local sino solo en el servidor, necesito de su ayuda para ver como puedo hacer para solucionar este impase, gracias


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Imports System.Drawing.Printing
 
 
Protected Sub btnHojaVisitante_Click(sender As Object, e As System.EventArgs) Handles btnHojaVisitante.Click
	Dim dtHojaVisita As DataTable = clsGLTransferencia.cargarpthojavisitaV2(N_hoja_visita)
	If dtHojaVisita.Rows.Count > 0 Then
		Dim reportPath As String = Server.MapPath("Visita.rpt")
		Reporte = New ReportDocument()
		Reporte.Load(reportPath)
		Reporte.SetDataSource(dtHojaVisita)
		Response.Buffer = False
		Response.Clear()
		Dim inicio As Integer
		Dim ConfiguracionesDeImpresion As New PrinterSettings
		For inicio = 0 To PrinterSettings.InstalledPrinters.Count - 1
			If ConfiguracionesDeImpresion.IsDefaultPrinter = True Then
				Reporte.PrintOptions.PrinterName = ConfiguracionesDeImpresion.PrinterName()
			End If
		Next
		Reporte.PrintToPrinter(1, False, 0, 0)
		Reporte.Close()
	Else
		MessageBox("No existe información para mostrar")
	End If
End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder