Load FPX Prepared Report in PreviewControl

Hello everyone!

I'm generating prepared reports and want to allow people to view the prepared reports but I can't seem to get them to load in the PreviewControl.

Has anyone done this or know what I have to do differently to do this?

I appreciate the help!

Comments

  • I figured this out so I wanted to post the solution in case anyone else needed it:

    // push to fastreport

                       FastReport.Report report = new FastReport.Report();


                       //Get Directory for Reports

                       string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

                       string FileString = @"\...\....\....\File.fpx";

                       string directoryString = appdata + FileString;

                       report.Load(directoryString);

                       report.Preview = ReportPreviewControl;

                       report.Prepare();

                       report.ShowPrepared();

                       report.Preview.ZoomPageWidth();

                       ReportPreviewControl.Update();

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.