---
title: "How to create Reports with extra resources"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220845383/How%20to%20create%20Reports%20with%20extra%20resources"
format: markdown
---
This tutorial explains how to generate Reports that need extra resources to be generated, such as XML adapters for JDBC connections, sub reports, custom fonts etc.


# Creating the Report


Since version 1.6-Empire, if you create a Report template in the platform, you are going to notice some changes in the UI:


![image](media://52a4cc22-a13d-4dd5-9701-52b61387766c)


Report template is the main JRXML template, while additional resources can be any resource that the main reports needs to be generated.


So for example, if we need to generate a Report that has subreports defined in it, we will upload all compiled subreports (.jasper) as additional resources:

![image](media://516a5c05-5ee7-4d32-b7f4-52c4ac3d0069)

This resources can be updated/removed at any time.

The same applies if your Report template needs an XML definition for your Web Service/JDBC connector:

![image](media://6c57a9ff-652f-4080-b6b9-4f39d19778f7)

![image](media://9ea98539-22fa-402f-939e-4be35b4db7a2)


# Particular case: Fonts


Fonts need to be packetized inside a jar, you can take a look at the structure here: 

[http://jasperreports.sourceforge.net/sample.reference/fonts/#fonts](http://jasperreports.sourceforge.net/sample.reference/fonts/#fonts)


Basically a structure as follows:


![image](media://f1bfa748-84f0-4f32-a628-945642a8a278)


In the jasperreports_extension.properties you define where is the fonts.xml of your fonts:


net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory  
net.sf.jasperreports.extension.simple.font.families.dejavu=net/sf/jasperreports/fonts/fonts.xml


fonts.xml: here you define where the compiler should find the fonts.

![image](media://5146bfb5-91f9-4bc1-85a8-e9c0a879f3b9)


While in the dejavu folder you have the fonts themselves, in a .ttf format


![image](media://7910582c-617a-42fc-b0f6-bf3f9dc59d24)

When you have the jar, just upload it as an additional resource in your Report:


![image](media://a32cf0e8-643b-47d1-b7ef-e9821a05c7cc)


The JVM will find the fonts for your report without the need of installing the font in the System.

![image](media://8618c9f5-b367-4a05-8aa3-a0a52a3332c4)