Can you load RDLC file in razor project?
Hi, im new using FastReport
I saw a lot of example that "LoadPrepared" a fpx file. But can you load a RDLC file?
Thank you
This discussion has been closed.
Hi, im new using FastReport
I saw a lot of example that "LoadPrepared" a fpx file. But can you load a RDLC file?
Thank you
Comments
Hello!
To import, use `RDLImportPlugin.LoadReport`; after that, you can
convert RDL to FRX using code. Here's an example:
using (Report report = new Report()) { RDLImportPlugin rdlImport = new RDLImportPlugin(); // Load the .rdl or .rdlc file into the Report object using (FileStream fs = new FileStream(“template.rdl”, FileMode.Open, FileAccess.Read)) { rdlImport.LoadReport(report, fs); } // Save as a FastReport .frx template report.Save(“converted.frx”); }