This repository contains the source code of the examples of usage Stimulsoft Reports.JS reporting tool in the HTML and JS Web applications, using pure JavaScript code and HTML5 components. The report builder and examples are fully compatible with all modern browsers and OS.
A set of examples for working with Reports from code:
- Exporting a Report to HTML
- Exporting a Report to PDF
- Loading Scripts in Part to Minify Project
- Loading the Report
- Printing the Report
- Registering a JSON Data for the Report Template
- Registering an XML Data for the Report Template
- Saving the Rendered Report to a File
- Setting the Variable Value from Code
- Showing a Report as PDF
- Supply Custom Headers for Json Database
A set of examples for working with the Report Viewer:
- Assigning a Report to the Viewer
- Changing the Viewer Theme
- Customizing the Viewer
- Printing the Table from Code
- Showing the Report Viewer in a Required Position
- Showing the Viewer Immediately after Running an App
- Showing the Viewer in iframe
- Using the Full-Screen Mode in the Viewer
- Using Viewer Events
A set of examples for working with the Report Designer:
- Adding a Font to the Resource
- Changing the Designer Theme
- Customizing the Designer
- Editing a Report Template in the Designer
- Localization the Designer
- Showing the Designer Immediately after Running an App
- Showing the Designer in a Required Position
- Showing the Designer in iframe
- Using a Custom Data Adapter
- Using Designer Events
- Using the Full-Screen Mode in the Designer
Application for working with Reports without any web-server:
To launch these examples, you can use any web-server. Below are some options:
- run the
node index
command in the console and navigate to thehttp://localhost:8888/
link in the web browser; - just copy this folder to any web server, and open the
index.html
page in the web browser; - in Visual Studio, please open the menu
File
and click toOpen
>Web Site...
item, select the folder with this repository, right mouse click on theindex.html
>Set As Start Page
, and run the project; - the Demo project written in the HTML/JS, and can run without any web server side - it works in the browser from the local disk storage.
Since pure JavaScript does not have built-in methods for working with remote databases, this functionality is implemented using server-side code. Therefore, Stimulsoft Reports.JS product contains server data adapters implemented using PHP, Node.js, ASP.NET, Java, .NET Core technologies.
Many examples for other platforms and technologies are collected in separate repositories:
Stimulsoft Reports.JS offers a wide range of reporting components created in pure JavaScript. The report builder can be easily integrated into any JavaScript app, works in any modern browser – Chrome, Firefox, Safari, Edge, and supports Node.js. The product contains everything you need to create, edit, build, view and export reports of high complexity.