Customized Ad Hoc Template Report

Customized Ad Hoc Template Report

In ZENworks Reporting Server 5.6.1, creating an Ad Hoc report displays only plain data. This cool solution will display Ad Hoc reports with the default customized template that includes the Micro Focus logo, Logged in user, and Page footer for all the page orientations (Actual Size, Portrait, and Landscape). In addition these default templates can also be modified, once Jaspersoft Studio 5.6.1 is connected to ZRS Reporting Server 5.6.1.

Steps for Creating Ad Hoc Template Report :

1. Log in to ZENworks Reporting Server as user.
2. Go to Manage -> Server Settings -> Import
3. Enable Update Checkbox and disable rest of all the check-boxes.
4. Upload the zip file CustomizedAdhocReportTemplates attached and Click Import.
5. Create an Ad Hoc view, drag required objects.
6. Add a title header in "Click to add a title" section.
7. Click the option Save Ad Hoc view and Create Reports.
8. In the dialog box, Select the radio button "Generate Report with: Custom Report Template" as mentioned below.

cool1

9. Browse the customized template that has different page orientations added as a part of this zip file.

Cool2

10. Save the Ad Hoc Customized report in the desired location and run the report that was just saved.

TemplateReport

This is the default report template that has been provided. we can edit the templates, based on the requirements.

For instance, to change the logo of the default template, connect Jasperstudio 5.6.1 to ZRS Reporting Server 5.6.1 using the following link:

https://www.novell.com/documentation/zenworks113/zen11_zrs_installation/data/b1cy2qjo.html

Once connection is established, go to root folder Public > Templates in Jaspersoft Studio, all normal and Customized templates are available and it can be modified. In this case, Actual Customized jrxml file is opened.

cool11

Adding a new image resource file in Jasperreports Server resource file.

Cool12

Add the image resource file and browse the required image file from the local file system.

Cool13

Once the image is uploaded, the image resource file name is available and it can be seen in the below mentioned snapshot.

cool14

Drag the actual customized jrxml file in editor and click on the image file that is seen on the template file, expression editor is seen in the properties file shown below. Change the path of the image file location in Expression editor accordingly.

cool15

Once the exact path location is mentioned, you can see the image file getting modified in the template jrxml file. Press Ctrl + S, to save and publish these changes to ZENworks Reporting Server 5.6.1.

cool16

Try creating Ad Hoc view and save the report with Custom Report Template that is modified. Newly created custom template report has data with the new logo changes.

Cool17

Similarly, once JasperStudio 5.6.1 is connected, these default templates can be extended based on the requirements.
Labels (1)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments
Hi

Great article however i'm hitting an issue when trying to import my own logo and naything into the Public -> templates folder via Studio.

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Seem to not have the right level of access ? even though i can create custom reports.

Thanks

Spencer
Top Contributors
Version history
Revision #:
7 of 7
Last update:
‎2020-02-18 22:44
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.