/// <summary> /// Generates the final PDF file. /// </summary> /// <param name="pdfRptFileBuilder">Pdf RptFile Builder Settings</param> /// <param name="debugMode">Run in debug mode</param> /// <returns>IPdfReportData</returns> public IPdfReportData Generate02(Action <FileBuilder> pdfRptFileBuilder, HttpResponseBase Response, bool debugMode = false) { if (pdfRptFileBuilder != null) { var builder = new FileBuilder(this); pdfRptFileBuilder(builder); var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, FlushInBrowser = builder.FlushReportDataInBrowser, FlushType = builder.FlushType }.GeneratePdf02(debugMode, Response); return(rpt); } else { var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, //FlushInBrowser = builder.FlushReportDataInBrowser, //FlushType = builder.FlushType }.GeneratePdf02(debugMode, Response); return(rpt); } }
/// <summary> /// Generates the final PDF file. /// </summary> /// <param name="pdfRptFileBuilder">Pdf RptFile Builder Settings</param> /// <returns>IPdfReportData</returns> public IPdfReportData Generate(Action <FileBuilder> pdfRptFileBuilder) { var builder = new FileBuilder(this); pdfRptFileBuilder(builder); var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt }.GeneratePdf(); return(rpt); }
/// <summary> /// Generates the final PDF file. /// </summary> /// <param name="pdfRptFileBuilder">Pdf RptFile Builder Settings</param> /// <param name="debugMode">Run in debug mode</param> /// <returns>IPdfReportData</returns> public IPdfReportData Generate(Action <FileBuilder> pdfRptFileBuilder, bool debugMode = false) { var builder = new FileBuilder(this); pdfRptFileBuilder(builder); var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, FlushInBrowser = builder.FlushReportDataInBrowser, FlushType = builder.FlushType }.GeneratePdf(debugMode); return(rpt); }
/// <summary> /// Generates the final PDF file. /// </summary> /// <param name="pdfRptFileBuilder">Pdf RptFile Builder Settings</param> /// <param name="debugMode">Run in debug mode</param> /// <returns>IPdfReportData</returns> public IPdfReportData Generate(Action<FileBuilder> pdfRptFileBuilder, bool debugMode = false) { var builder = new FileBuilder(this); pdfRptFileBuilder(builder); var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, FlushInBrowser = builder.FlushReportDataInBrowser, FlushType = builder.FlushType }.GeneratePdf(debugMode); return rpt; }
/// <summary> /// Generates the final PDF file. /// </summary> /// <param name="pdfRptFileBuilder">Pdf RptFile Builder Settings</param> /// <param name="debugMode">Run in debug mode</param> /// <returns>IPdfReportData</returns> public IPdfReportData Generate02(Action<FileBuilder> pdfRptFileBuilder, HttpResponseBase Response, bool debugMode = false) { if (pdfRptFileBuilder != null) { var builder = new FileBuilder(this); pdfRptFileBuilder(builder); var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, FlushInBrowser = builder.FlushReportDataInBrowser, FlushType = builder.FlushType }.GeneratePdf02(debugMode, Response); return rpt; } else { var rpt = PdfRptDataBuilder; new PdfReportDocument { PdfRptData = rpt, //FlushInBrowser = builder.FlushReportDataInBrowser, //FlushType = builder.FlushType }.GeneratePdf02(debugMode, Response); return rpt; } }