public XtraReport GetReporteTablaCertifico() { if ( ParticipantesDeProyectos.Any( c => c.TipoParticipante == Enumerados.TipoParticipante.Integrante.ToString())) { TablaCertificoXtraReportV2 tablaCertifico = new TablaCertificoXtraReportV2(this); tablaCertifico.CreateDocument(); return(tablaCertifico); } return(null); }
public void MostrarReporteFundamentacion(bool anHabillitacionDePasaporte = false) { Proyectos proyectos = (new NegocioDataContext().Proyectos.FirstOrDefault(c => c.ProyectoID == ProyectoID)); XtraReport hojaNotificacionXtra = new XtraReport(); hojaNotificacionXtra.CreateDocument(); HojaFundamentacionXtraReport hojaFundamentacionXtra = new HojaFundamentacionXtraReport( proyectos.ProyectoID, anHabillitacionDePasaporte); hojaFundamentacionXtra.CreateDocument(); PlanillaSalida salida = new PlanillaSalida(proyectos, anHabillitacionDePasaporte); salida.CreateDocument(); hojaNotificacionXtra.Pages.AddRange(hojaFundamentacionXtra.Pages); hojaNotificacionXtra.Pages.AddRange(salida.Pages); if ( ParticipantesDeProyectos.Any( c => c.TipoParticipante == Enumerados.TipoParticipante.Integrante.ToString())) { TablaCertificoXtraReportV2 tablaCertifico = new TablaCertificoXtraReportV2(this); tablaCertifico.CreateDocument(); hojaNotificacionXtra.Pages.AddRange(tablaCertifico.Pages); } //hojaNotificacionXtra.Pages.AddRange(GetCartaDeInvitacion(true).Pages); //var documentosPages = GetDocumentosDeInvitados(false).Pages; //hojaNotificacionXtra.Pages.AddRange(documentosPages); hojaNotificacionXtra.ShowRibbonPreviewDialog(); //List<ImageFullPageXtraReport> _CartaDeInvitacion = GetCartaDeInvitacion(); //foreach (var _ImageFullPageXtraReport in _CartaDeInvitacion) //{ // _ImageFullPageXtraReport.CreateDocument(); // _HojaNotificacionXtra.Pages.AddRange(_ImageFullPageXtraReport.Pages); //} //using (ReportPrintTool printTool = new ReportPrintTool(hojaNotificacionXtra)) //{ // // Invoke the Ribbon Print Preview form modally, // // and load the report document into it. // printTool.ShowRibbonPreviewDialog(); // // Invoke the Ribbon Print Preview form // // with the specified look and feel setting. // //printTool.ShowRibbonPreviewDialog(UserLookAndFeel.Default); //} }