FastReport.Documentation icon indicating copy to clipboard operation
FastReport.Documentation copied to clipboard

pdf download

Open smohammedyasin opened this issue 4 years ago • 1 comments

Hi,

Is there any function , to download or print as pdf?. thank you

smohammedyasin avatar Oct 07 '21 08:10 smohammedyasin

Hello!

you can use:

Report report = new Report();
report.Load("your report.frx");
            report.Prepare();

var pDFExport = new PDFExport();
pDFExport.Export(report, "pdf file name.pdf");

To print like this:

            Report report = new Report();
            report.Load(@"your report.frx");
            report.Prepare();

            report.PrintSettings.Printer = "microsoft pdf printer";

            report.Print();

MaratAlaev avatar Oct 07 '21 10:10 MaratAlaev