예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="informacion"></param>
        public FastReportServicio(PdfDummy informacion, int hojas)
        {
            report           = new Report();
            this.informacion = informacion;
            this.hojas       = hojas;


            thread = new Thread(new ThreadStart(Reporte));
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pdfDummy"></param>
        /// <param name="informacion"></param>
        public FastReportServicio(byte[] pdfDummy, PdfDummy informacion, int hojas)
        {
            var fs = new MemoryStream(pdfDummy);

            report = Report.FromStream(fs);

            this.informacion = informacion;

            thread = new Thread(new ThreadStart(Template));
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
        }
예제 #3
0
        public TextSharpServicio(PdfDummy informacion, bool template, int hojas)
        {
            _doc = new Document(PageSize.A4, 5F, 5F, 73.5F, 70f);

            _workStream            = new MemoryStream();
            _pdfWriter             = PdfWriter.GetInstance(_doc, _workStream);
            _pdfWriter.CloseStream = false;
            _hojas = hojas;



            _informacion = informacion;


            if (!template)
            {
                GenerarPdf();
            }
            else
            {
                UtilizarTemplatePdf();
            }
        }