Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <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);
        }
Exemplo n.º 3
0
        /// <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);
        }
Exemplo n.º 4
0
        /// <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;
        }
Exemplo n.º 5
0
        /// <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;

            }
        }