

- #Stimulsoft report viewer how to#
- #Stimulsoft report viewer generator#
- #Stimulsoft report viewer code#
The PreviewReport action will be invoked when you open the preview report tab in the designer. Return StiMvcDesigner.GetReportResult(report) In the parameters of this method, the report object should be passed: The GetReport action loads the report template and returns the response to the client part of the designer using the GetReportResult() static method. Next, add the actions for the controller of the report designer. The ViewerEvent action handles all the viewer events (switching pages, zooming, printing, exporting, interactivity, etc.) and returns the response to the client using the ViewerEventResult() static method: Return StiMvcViewer.GetReportResult(report) Report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")) For example, load the rendered report file: In the parameters of this method, the report object should be passed. The GetReport action loads the report and returns the response to the client part of the viewer using the GetReportResult() static method. First, let's add the actions for the controller of the report viewer. Next, you need to add all these actions to the appropriate controllers. Using the Viewer and Designer in One Report", Report", "Viewer") In the Home main view, add the links to the Viewer and Designer views:

For the ability to preview and save the report, specify the PreviewReport and SaveReport StiMvcDesignerOptions() The minimum required options are two actions - GetReport and DesignerEvent. Also you need to pass the StiMvcDesignerOptions object to the constructor. Next, you need to add the StiMvcDesigner component to the Designer view page. The minimum required options are two actions - GetReport and ViewerEvent, they are located in the Actions options StiMvcViewerOptions()ĭisplayMode = StiToolbarDisplayMode.Separated Also you need to pass the StiMvcViewerOptions object to the constructor. The designer is located on the Designer view, the viewer is located on the Viewer view, all these views have their own controllers.įirst, you need to add the StiMvcViewer component to the Viewer view page. The report designer and viewer are located in this sample project on the different views.
#Stimulsoft report viewer how to#
Our product is based on many years of experience in creating products for data visualization and analysis.This example shows how to edit a report template in the designer, save it and show this report in the viewer. The product contains a powerful engine for report rendering, a user-friendly designer with a familiar interface and a rapid report viewer for observing. The product includes wide features for creating, viewing, printing, exporting reports.
#Stimulsoft report viewer generator#
Stimulsoft Reports.WPF is a powerful and flexible report generator for the Windows Presentation Foundation platform. The required libraries will be automatically downloaded from the NuGet repository. In order to start simply open the Visual Studio solution file in the IDE and run the required project as Startup Project. Currently, projects are prepared for these frameworks: They are prepared only for LTS frameworks, any compatible ones can be selected in the project settings.
#Stimulsoft report viewer code#
WPF samples for Stimulsoft Reports.WPF This repository contains the source code of the examples of usage Stimulsoft Reports.WPF report builder in the Windows Presentation Foundation apps, using C# code and WPF embedded components.
