public static void Main()
        {
#if NETCOREAPP
            FontsProviderBase fontsProvider = new FontsProvider();
            FixedExtensibilityManager.FontsProvider = fontsProvider;
#endif

            DocumentGenerator generator = new DocumentGenerator();
            generator.Export(ResultDirName);
        }
Esempio n. 2
0
        public static void Main()
        {
            DocumentGenerator generator = new DocumentGenerator();

            generator.Export(ResultDirName);

            Console.WriteLine("The document is saved.");
            Process.Start(ResultDirName);
            Console.Read();
        }
Esempio n. 3
0
        static void Main()
        {
            Console.Write("Choose the format you would like to export to (docx/html/rtf/txt/pdf): ");

            string input = Console.ReadLine();

            DocumentGenerator generator = new DocumentGenerator();

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

            generator.Generate();

            Console.Read();
        }
Esempio n. 4
0
        private static void Main()
        {
#if NETCOREAPP
            FontsProviderBase fontsProvider = new FontsProvider();
            FixedExtensibilityManager.FontsProvider = fontsProvider;
#endif
            Console.Write("Choose the format you would like to export to (docx/html/rtf/txt/pdf): ");

            string input = Console.ReadLine();

            DocumentGenerator generator = new DocumentGenerator();

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

            generator.Generate();

            Console.Read();
        }
Esempio n. 5
0
        public static void Main()
        {
            DocumentGenerator generator = new DocumentGenerator();

            generator.Export(ResultDirName);
        }