Report with dataset doesn´t print nothing with two tables
Posted: Mon Sep 08, 2014 3:58 pm
Hi, I have a problem. I´m sending a dataset with two tables to my report, but when my report is print show a empty report, and when I send my dataset whith just one table my databands are printed whith the data of my dataset with just one table.
This is my code
This is my code
Code: Select all
Dim reporte As New StiReport
reporte.Load(archivo)
reporte.Compile()
reporte("urlImagenNave") = Tools.Controles.ObtenerLogoNave(cmbNave.SelectedValue)
reporte("nombreNave") = cmbNave.Text
reporte("NombreReporte") = "SAY: RESUMEN_UBICACION_ICI.mrt"
reporte("Usuario") = Entidades.SesionUsuario.UsuarioSesion.PUserUsername.ToString
reporte("Operador") = NombreOperador
reporte("Fecha de Ejecucion") = Fecha
reporte("InventarioCiclicoNombre") = Desccripcion
reporte("IdInventario") = IdInventario.ToString
reporte("TotalPares") = TotalPares
reporte("inv_n") = "*" + IdInventario.ToString + "*"
reporte("Inventario_n") = "no. " + IdInventario.ToString
reporte.Dictionary.Clear()
reporte.RegData(dsInventario.DataSetName, dsInventario)
reporte.Dictionary.Synchronize()
reporte.Show()