示例#1
0
        public CsvReportScreen()
        {
            Title();

            var playlists = playlistService.GetAll();

            writer.WriteLine(
                "Generando reporte..."
                );

            var successful = reporter.ReportPieces(
                fileName: "Playlists",
                playlists: playlists,
                title: "Reporte de Piezas",
                type: ReportType.Csv,
                portrait: false,
                sheetName: "Playlists"
                );

            Clear();

            Title();
            if (successful)
            {
                writer.WriteLine("¡Reporte generado exitósamente! : )");
            }
            else
            {
                writer.WriteLine("Lo sentimos, el reporte no ha podido ser generado. : (");
            }
        }