/// <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(); }
/// <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(); }
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(); } }