How to show report in Windows.panel

edited 5:40PM in FastReport .NET
How to show report in Windows.panel

Thanks in advance.

Comments

  • StarkStark Syria
    edited August 2010
    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();
    

    Hope this help
  • edited 5:40PM
    Yes it helps,
    Thank you
  • 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.

Leave a Comment