.JRXML - File Extension for JasperReports XML Files

Q

What is JRXML? JRXML, short name for JasperReports XML, is used as the file extension for JasperReports XML files. .JRXML files are XML files that can be opened by XML editors. See the sample .JRXML file included below.

✍: FYIcenter.com

A

File Extension: .JRXML

MIME Type: text/xml

File Content: JasperReports XML

.JRXML files are JasperReports XML files, which defines JasperReports reports. Here is a sample .JRXML JasperReports XML file for a complex report:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN"
  "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="FirstJasper" columnCount="2" pageWidth="595"
  pageHeight="842" columnWidth="270" columnSpacing="15" leftMargin="20" 
  rightMargin="20" topMargin="30" bottomMargin="30">
  <style name="Arial_Normal" isDefault="true" fontName="Arial" 
    fontSize="8" isBold="false" isItalic="false" isUnderline="false" 
    isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" 
    isPdfEmbedded="false"/>
  <style name="Arial_Bold" isDefault="false" fontName="Arial" fontSize="8"
    isBold="true" isItalic="false" isUnderline="false" 
    isStrikeThrough="false" pdfFontName="Helvetica-Bold" 
    pdfEncoding="Cp1252" isPdfEmbedded="false"/>
  <style name="Arial_Italic" isDefault="false" fontName="Arial" 
    fontSize="8" isBold="false" isItalic="true" isUnderline="false" 
    isStrikeThrough="false" pdfFontName="Helvetica-Oblique" 
    pdfEncoding="Cp1252" isPdfEmbedded="false"/>
  <parameter name="ReportTitle" class="java.lang.String"/>
  <parameter name="MaxOrderID" class="java.lang.Integer"/>
  <parameter name="SummaryImage" class="java.awt.Image"/>
  <queryString><![CDATA[SELECT * FROM Orders WHERE OrderID 
    <= $P{MaxOrderID} ORDER BY ShipCountry]]></queryString>
  <field name="ShippedDate" class="java.sql.Timestamp"/>
  <field name="ShipCountry" class="java.lang.String"/>
  <field name="RequiredDate" class="java.sql.Timestamp"/>
  <field name="CustomerID" class="java.lang.String"/>
  <field name="OrderID" class="java.lang.Integer"/>
  ...
</jasperReport>

.JRXML JasperReports XML file sample: Click sample.jrxml to download.

Since .JRXML text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

For for information on how to use .JRXML JasperReports XML files, see links below:

2012-07-08, 8515👍, 0💬