有没有人知道如何从“快速报告”中获取 PDF 打印件? (.NET)
report1.Export(frxPDFExport1);
那条线不起作用,?
最佳答案
您好,这是如何导出为 pdf 的答案。
using FastReport.Export.Pdf;
report1.Prepare();
PDFExport pdf = new PDFExport();
report1.Export(pdf, "c:\\ExportedPDF.pdf");
就是这样 :) 要导出为其他格式,您需要创建适当的 ExportBase 对象。 此外,如果您的报告有表格 - 那么用户必须先单击“确定”,然后才会因为 Prepare 方法而创建 pdf。
关于c# - 将 FASTREPORT 打印导出为 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16895574/