From Visual Studio ToolBox , Add the "Fast Report preview Control" to the Windows Panel Control
And use the code below to load your report to it .
previewControl1.Load("c:\\MyReport.fpx");
OR you can add the preview control and load the report by this code :
FastReport.Preview.PreviewControl prv = new FastReport.Preview.PreviewControl();
prv.Dock = DockStyle.Fill;
panel1.Controls.Add(prv);
prv.Load("c:\\MyReport.fpx");
if your report is not a stream or file use this
FastReport.Report rpt = new FastReport.Report(); // my report
            rpt.Preview = previewControl1;
            rpt.Show();
Sometimes while using Windows Defender to the system an error code 0X800704EC occurs. It mainly occurs due to corrupt or broken Registry files. To solve this issue is not easy. If such issue arises visit Windows Defender Not Responding or visit https://notresponding.net/windows-defender-...ode-0x800704ec/ to the solution.
Comments
And use the code below to load your report to it .
OR you can add the preview control and load the report by this code :
if your report is not a stream or file use this
Hope this help
Thank you