Quickreport 6: Web Control Features

Customizable Web Viewer Designs

QuickReport includes a number of standard web viewer designs. These come in the form of QuickReport designs and can be customised immediately in the IDE if required. The content of the viewer may be provided from existing html files or dynamically by calling a CGI process. The web application may be streamed to the browser and the content loaded automatically when the web application starts.

Range of Application

The web controls may be divided into those that hold content (which may change) and those which perform actions on content. The main content holder is the TQRReportFrame control. Controls that act on content include buttons, menus, drop-downs and splitters. These elements are static like the controls on an application interface, but may be hidden or revealed by splitters.

It has not been our aim to provide web versions of the VCL controls rather we have a new control that is suited to presenting data such as timetables and schedules, summaries and lists on  mobile devices where tapping replaces  mouse actions. In this case the control is a container and an active control.

A great advantage for QuickReport users is that the content may be tailored for different devices, with narrower content formats and larger controls for small devices. Information is embedded in the content html by the exporter, allowing indexing and navigation by the web controls linked to the content.

Styling Features

HTML has powerful methods to set the appearance of web pages and their elements. Most of these are available to the QuickReport developer through properties of the web controls. Borders may be styled, backgrounds can be colours or images and most controls have the option be entirely drawn by code inserted at design-time. An extra design time colour editor is provided to allow colours to be defined by mixing red, green and blue components ad hoc.

Security

It is possible to design a secure viewer in conjunction with processes on the server.

The viewer will only use the ?Post? acquisition method (a property of the web button and its descendants) so no useful URLs are present in the viewer code. Only the fact that the button is activated is passed to the server. If there has been a valid log-in the server can stream the content associated with the button to the client, where it is displayed in a report frame component.

Browsers

The web controls have been tested in FireFox, Internet Explorer and Chrome on Windows, Mac-OSX and a Windows mobile device.

Web Control Summary

In the past it was possible to stream a report in html form to a web browser in a few simple steps. Now one may stream a web application which will load the content when the application starts. The user sees the report in a viewer similar to the standard preview. Many reports may be viewed from the same application if required. Once in the viewer application the report may be searched, indexed and so on.

The Web Controls

Control

Type

Description

TQRWebLabel

simple

Displays text on a background

TQRReportFrame

simple

Content container

TQRWebButton

simple

Button

TQRWebPageSelect

compound

Combines an input and a button for page selection

TQRWebSplitter

simple

Hides or reveals areas on the form

TQRWebInput

compound

Text input control and label text

TQRWebCheckBox

compound

Checkbox and label text

TQRWebFinder

compound

Combines an input, label and button for text searching

TQRWebTabs

compound

Combines buttons and and a frame into a tabbed page

TQRWebDropList

simple

Dropdown list with fixed content.

TQRWebMenu

simple

Main or sub menu control which has menu option children

TQRWebMenuOption

simple

Option buttons which belong to a menu

TQRDropDown

simple

Shows headline content which expands on click/tap

TQRWebCanvas

simple

This control is drawn by code inserted at design time

TQRWebIndex

compound

Combines a button, an input and frames to index content

TQRWebPageExtractor

compound

Combines controls to get pages from hidden content

TQRWebImage

simple

Shows an image. A label with a background image also does

TQRWebCrossTab

compound

Combines control to allow content to be cross tabulated

TQRWebData

simple

Shows dates and times. Updateable at intervals.