Ejemplo n.º 1
0
        /// <summary>
        /// This is simple application that will generate output file "PdfReportsTest.pdf" in app\bin\debug folder
        /// from template file "PdfReportsTest.prtp" located in project folder.
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.Write("\nStarting generator...");
            PdfReports Reporter = new PdfReports(false);

            Console.Write("\nAdding template file: PdfReportsTest.prtp");
            Reporter.TemplateFileName = "PdfReportsTest.prtp";
            Console.Write("\nAdding data...");
            Reporter.DataSources.Add(GeneratePersons());
            Console.Write("\nGenerating pdf file: PdfReportsTest.pdf");
            Reporter.GeneratePdf("PdfReportsTest.pdf");
            Console.Write("\nFinished!\n");
        }