Exemplo n.º 1
0
        static void Main()
        {
            Console.Write("Choose destination for export or press Enter for the default one: ");
            string input = Console.ReadLine();

            ReportGenerator generator = new ReportGenerator();

            if (!string.IsNullOrEmpty(input))
            {
                generator.ExportDirectory = input;
            }

            generator.ExportReports();
            Console.ReadKey();
        }
Exemplo n.º 2
0
        private static void Main()
        {
#if NETCOREAPP
            ImagePropertiesResolverBase imagePropertiesResolver = new ImageInfo();
            SpreadExtensibilityManager.ImagePropertiesResolver = imagePropertiesResolver;

            FontsProviderBase fontsProvider = new FontsProvider();
            FixedExtensibilityManager.FontsProvider = fontsProvider;
#endif

            Console.Write("Choose destination for export or press Enter for the default one: ");
            string input = Console.ReadLine();

            ReportGenerator generator = new ReportGenerator();

            if (!string.IsNullOrEmpty(input))
            {
                generator.ExportDirectory = input;
            }

            generator.ExportReports();
            Console.ReadKey();
        }