ActiveReports 13
HTML5 Viewer
ActiveReports 13 > ActiveReports User Guide > Samples and Walkthroughs > Samples > Web > HTML5 Viewer

The HTML5 Viewer sample demonstrates the use of HTML5 Viewer and its options to load different report types in basic or customized viewer.  

Note: HTML5 Viewer is deprecated and will be obsolete in the future version.

Basic UI

Custom UI

Sample Location

Visual Basic.NET

<User Folder>\GrapeCity Samples\ActiveReports 13\Web\HTML5 Viewer\VB.NET

C#

<User Folder>\GrapeCity Samples\ActiveReports 13\Web\HTML5 Viewer\C#

Details

When you run the sample, the index.html containing the HTML5 Viewer appears on your browser with the following options to choose from:

The Basic UI Viewer appears by default with an option of switching to Custom UI Viewer by clicking the Custom UI option.

The Custom UI option loads the CustomUI.html in the browser. On the Custom UI Viewer page, you can click on any Genre category button to pass parameter to the MoviesReport.rdlx report and load the report in the viewer specific to the passed parameter value.

While working on the Custom UI Viewer, you can always switch back to the Basic UI Viewer by clicking the Basic option.

These options are a part of the Basic UI Viewer. Click on any of these buttons to load a report of specific format.

These options are a part of the Basic UI Viewer and are related to the Viewer report preview area. When you run this project, the HTML5 Viewer Desktop UI appears in the browser by default. You can switch to the HTML5 Viewer Mobile UI by clicking the Mobile button.

The project consists of the following elements:

BillingInvoice.rdlx: This page based report gets loaded in the viewer when you select the Page Report type in the Basic UI viewer. This report uses the NWind shared data source connection to provide data. This report showcases a billing invoice layout commonly used in convenience stores. The report mostly contains Label, TextBox and Line controls in its layout. The EAN128FNC1 barcode is used in this report due to its high reading accuracy in convenience stores.
Invoice.rpx: This section based report gets loaded in the viewer when you select the RPX report type in the Basic UI viewer. This report uses the NWind data source connection to provide data. This report uses TextBox controls to create the Invoice layout for displaying customer transactions. One of the TexBox uses the Sum function to display the GrandTotal of all transactions.
MoviesReport.rdlx: This page based report appears in the Custom UI viewer. This report uses the Reels database to provide data to showcase the list of movies based on different genres using the parameter set on the GenereName field.
OilProducingCountries.rdlx: This page based report gets loaded in the viewer when you select the RDL report type in the Basic UI viewer. This report uses the FactBook database to provide data to the Map control that visualizes the oil production for different parts of the world.
rpt2DBar: This code-based section report gets loaded in the viewer when you select the Code-based report type in the Basic UI viewer. This report displays bar chart and retrieves the data to be displayed in a chart from Orders table of NWind database.
SalesDashboard.rdlx: This page based report gets loaded in the viewer when you select the RDL report type in the Basic UI viewer. This report uses the SalesResult database to display multiple Chart controls and a Tablix data region to visualize the sales performance data. This report illustrates the Galley-mode feature where all of the report contents can be previewed in a single scrollable page.
See Also

Getting Started