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