Hi,
I need show data of three different datasources in the same report. I'm trying to use a subreport but I don“t have success.
How am I set a datasource of subreport with a MotoristasViagem property of viagemInfo?
I need show data of three different datasources in the same report. I'm trying to use a subreport but I don“t have success.
public class ViagemInfo{ public int IDEmpresa { get; set; } public int AnoViagem { get; set; } public int IDViagem { get; set; } public int IDConta { get; set; } public List<MotoristaViagemInfo> MotoristasViagem { get; set; }}public class MotoristaViagemInfo{ public int IDMotorista { get; set; } public int Nome { get; set; }} private void LoadData(int IdEmpresa, int AnoViagem, int IdViagem){ ViagemInfo viagemInfo; try { using (PedidoProxy.Pedido svcProxy = new PedidoProxy.Pedido()) { //load the ViagemInfo with a List<MotoristaViagemInfo> viagemInfo = svcProxy.ObterViagemDetalhada(IdEmpresa); } CertificadoViagem reportCertificado = new CertificadoViagem(); reportCertificado.ReportParameters["IdEmpresa"].Value = IdEmpresa; reportCertificado.DataSource = viagemInfo; } catch { throw; }}How am I set a datasource of subreport with a MotoristasViagem property of viagemInfo?