PdfRpt.FluentInterface.PdfReport.GenerateAsByteArray C# (CSharp) Method

GenerateAsByteArray() public method

Generates the final PDF file.
public GenerateAsByteArray ( bool debugMode = false ) : byte[]
debugMode bool
return byte[]
        public byte[] GenerateAsByteArray(bool debugMode = false)
        {
            var rpt = PdfRptDataBuilder;
            return new PdfReportDocument
            {
                PdfRptData = rpt,
                OutputAsByteArray = true,
                FlushInBrowser = false
            }.GeneratePdf(debugMode);
        }

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Sets the output PDF file's byte array.
 /// </summary>
 /// <param name="outputPdfBytes">output data</param>
 public void AsByteArray(out byte[] outputPdfBytes)
 {
     outputPdfBytes = _pdfReport.GenerateAsByteArray();
 }