How to show report in Windows.panel

edited 1:17PM 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 1:17PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.