Error en reportviewre
Publicado por Jose Ricardo (41 intervenciones) el 28/05/2018 07:47:38
Buenas compañeros, les comeneto, en un formulario tengo 2 ReportViewer uno en el que cargo todos los datos, imagnes y formato del registro, y el segundo reportviewer que esta oculta donde recive los datos pero sin las imagnes, listo para imprimir en la hoja "Que posee un formato fisico".
Me funcionaba todo bien , hasta que estaba editando algunos tamaños de campo de texto, o agregando unas cosas en el reportviewer1 , cuando lo probe me mandaba el siguiente error, al hacer clic en el boton que manda a imrpimir el reportviewer2
Aca parte del codigo que me mandaba a imrpimir el reportviewer2
Me funcionaba todo bien , hasta que estaba editando algunos tamaños de campo de texto, o agregando unas cosas en el reportviewer1 , cuando lo probe me mandaba el siguiente error, al hacer clic en el boton que manda a imrpimir el reportviewer2
Aca parte del codigo que me mandaba a imrpimir el reportviewer2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Dim adapter6 As New MySqlDataAdapter
Dim ds6 As New DataSetMySQL
adapter6.SelectCommand = New MySqlCommand("SELECT * FROM Muestra where cod_reg='" & Imp_CodReg & "'", conexion_mysql.conexion_mysql)
adapter6.Fill(ds6.Tables("Muestra"))
Me.ReportViewer2.RefreshReport()
ReportViewer2.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local
'ReportViewer1.LocalReport.ReportPath = System.Environment.CurrentDirectory & "\Imp_Doc_Reg.rdlc"
ReportViewer2.LocalReport.DataSources.Clear()
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("Registro", ds.Tables("Registro")))
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("VariablesSistema", ds2.Tables("VariablesSistema")))
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("Usuarios", ds3.Tables("Usuarios")))
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("infractor", ds4.Tables("infractor")))
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("Licencia", ds5.Tables("Licencia")))
ReportViewer2.LocalReport.DataSources.Add(New Microsoft.Reporting.WinForms.ReportDataSource("Muestra", ds6.Tables("Muestra")))
ReportViewer2.PrintDialog()
Valora esta pregunta
0