Beispiel #1
0
        public PdfWriter(ReportGenerator report)
        {
            // Store report locally
            this._report = report;

            // Create new PDF document (with Migradoc)
            _document = new Document();

            // Setup the title and footer
            _title = report.GetTitle();
            _footer = "Generated by Commerce Bank's Productivity Analysis System on "
                     + DateTime.Now.ToString("ddd, MMMM d, yyyy, hh:mm");

            // Styles are stored internally in document, so this sets those up
            DefineStyles();
        }