Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Report report = new Report();
- report.Load(@"C:\digi\source\utils\project\web\apps\api\report1.frx");
- FastReport.Utils.Config.WebMode = true;
- report.SetParameterValue("param1", 23);
- if (report.Report.Prepare())
- {
- FastReport.Export.Pdf.PDFExport pdfExport = new FastReport.Export.Pdf.PDFExport();
- pdfExport.ShowProgress = false;
- pdfExport.Compressed = true;
- pdfExport.AllowPrint = true;
- pdfExport.EmbeddingFonts = true;
- MemoryStream strm = new MemoryStream();
- report.Report.Export(pdfExport, strm);
- report.Dispose();
- pdfExport.Dispose();
- strm.Position = 0;
- return strm;
- }
- else
- {
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement