On the JReport Console > Resources page, you can directly create a new web report in a folder into which a catalog containing one or more business views has been published.
To create a web report:
. Click the Page Setup link to set the page properties.
If you are an administrator with the privilege of publishing resources, you can also create a new template to save your customization.If required, you can split the selected cell horizontally or vertically by clicking the Horizontal Split or Vertical Split button, merge adjacent cells by selecting them and clicking Merge. You can also resize the tabular cells by dragging the cell border.
When creating web reports, you need to choose a starting template. A web report template stores information on the header and footer as a starting point for a web report. If you are an administrator with the privilege of publishing resources, you can save report templates to include standard features such as a company logo, company name, privacy notices or any standard items and styles you want your users to start with.
The saved report templates will be added into the templates directory on the server <install_root>\templates, and will be automatically loaded onto the Page screen of the Web Report Wizard for use.
To create a report template by customizing the built-in templates in the Web Report Wizard:
The Web Report Wizard provides sample templates for you to define your own templates based on.
to load your company logo. You can set the font properties for company titles and report titles using
.To create a report template by editing a report in Web Report Studio:
The report header and footer are composed by two tabulars. You can split or merge the tabular cells by clicking the button
or
on the toolbar, then add objects from the Components panel into the tabular cells and format them to customize the header and footer.
on the Standard toolbar.If the web report template you use for creating a report contains the company logo information, you can make the logo display dynamically.
To display the company logo dynamically:
beside the Image Name text field, then do one of the following to change the image name.
JReport provides a built-in parameter named JRS_P_LOGOURL, which enables you to specify the logo path easily. You can enter return @JRS_P_LOGOURL; directly in the editing box of the Formula Editor to create the expression.
If the specified formula or expression returns an image, the logo image is changed. If the specified formula or expression uses parameters, the parameters are added to the Parameters panel on the left. You can specify the parameter values in the panel to dynamically change the logo image.
If you are an administrator with the privilege of publishing resources, you can then click Menu > File > Save As or the Save As button
on the Standard toolbar to save the template as a new one for future use. However, if the company logo of a template is controlled by a formula, later when users use this template to create web reports, the web reports might not be created successfully, so JReport provides the option When web report cannot run correctly as its template uses formulas referencing bound data on the Profile page for yor to determine what you want JReport to do in this case.
To rename or remove a web report template, go to the templates directory <install_root>\templates on your server, then rename or delete the template file (.wsld). For each template file, there is an image file (.wsld.png) which is used to display in the templates box of the Page screen of the Web Report Wizard, as a representative of the template. You will need to rename or delete the image file when you rename or delete the template file.