void Button_Pdf(object sender, RoutedEventArgs e)
        {
            var stream = LoadPlainResource();

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator(stream);
            reportCreator.BuildExportList();
            PdfExporter ex = new PdfExporter(reportCreator.Pages);
            ex.Run();
        }
        // GET: /Home/ContributorsList/
        public ActionResult ContributorsList()
        {
            var contributors = new ContributorsList().SmallContributorCollection;

            var reportDefinitionAsStream = LoadStreamFromResource("FromListNowRow.srd");

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator(reportDefinitionAsStream, contributors);
            reportCreator.BuildExportList();

            var ms = new MemoryStream();
            PdfExporter ex = new PdfExporter(reportCreator.Pages);
            ex.Run(ms);

            ms.Seek(0, SeekOrigin.Begin);
            return File(ms, "application/pdf", "contributors.pdf");
        }
        protected void createPdf(object sender, EventArgs e)
        {
            var contributors = new ContributorsList().SmallContributorCollection;

            var reportDefinitionAsStream = LoadStreamFromResource("FromListNowRow.srd");

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator(reportDefinitionAsStream, contributors);
            reportCreator.BuildExportList();

            var ms = new MemoryStream();
            PdfExporter ex = new PdfExporter(reportCreator.Pages);
            ex.Run(ms);

            ms.Seek(0, SeekOrigin.Begin);

            Response.ContentType = "application/pdf";
            Response.BinaryWrite(ms.ToArray());
            Response.End();
        }
        void List_To_Pdf(object sender, RoutedEventArgs e)
        {
            var stream = LoadListResource();

            var cl = new ContributorsList();
            var cc = cl.ContributorCollection;

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator (stream,cc);
            reportCreator.BuildExportList();
            PdfExporter ex = new PdfExporter(reportCreator.Pages);
            ex.Run();
        }