public override void Start()
		{
			base.Start();
			this.document = (this.reportSettings.Landscape)? new Document(PageSize.A4.Rotate(),0,0,0,0) : new Document(PageSize.A4,0,0,0,0);
			this.pdfUnitConverter = new PdfUnitConverter(this.document.PageSize,this.reportSettings);
			this.pdfWriter = PdfWriter.GetInstance(document, new FileStream(this.fileName,FileMode.Create));
			document.AddCreator(GlobalValues.ResourceString("ApplicationName"));
			FontFactory.RegisterDirectories();
			MyPageEvents events = new MyPageEvents();
			this.pdfWriter.PageEvent = events;
		}
Example #2
0
        public override void Start()
        {
            base.Start();
            this.document         = (this.reportSettings.Landscape)? new Document(PageSize.A4.Rotate(), 0, 0, 0, 0) : new Document(PageSize.A4, 0, 0, 0, 0);
            this.pdfUnitConverter = new PdfUnitConverter(this.document.PageSize, this.reportSettings);
            this.pdfWriter        = PdfWriter.GetInstance(document, new FileStream(this.fileName, FileMode.Create));
            document.AddCreator(GlobalValues.ResourceString("ApplicationName"));
            FontFactory.RegisterDirectories();
            MyPageEvents events = new MyPageEvents();

            this.pdfWriter.PageEvent = events;
        }