---
name: export
description: Configure and validate general or multi-format JasperReports output and exporter settings. Use as the format router; use pdf for PDF-specific delivery or conformance, spreadsheets for workbook structure, html for browser resources and links, and data-exports for CSV/JSON/XML schema, escaping and null contracts. Not for diagnosing a reported compile, fill or export error (use debug), engine migration, report layout that is not format-specific, or unrelated file conversion.
---
# Export a JasperReports report
## Establish requirements
Identify the exact engine and Java versions, requested formats, existing exporter code, installed extension modules, locale and timezone, font and resource packaging, and whether the output is page-oriented or data-oriented. Ask for unresolved requirements: sheet names, cell types and formulas, PDF compliance or encryption, HTML resource delivery, or CSV escaping and null semantics.
## Workflow
1. Compile and fill with the consuming project's engine. Configure the matching exporter through its supported input, output and configuration APIs. Check the version-matched API; do not reuse an old package import from memory.
2. Add only the needed modules at the engine's exact version. In 7.x the core alone may not supply PDF, spreadsheet or chart support. The tested 7.1.1 fixture uses `jasperreports-pdf` with `net.sf.jasperreports.pdf.JRPdfExporter` for PDF and `jasperreports-excel-poi` with `JRXlsxExporter` for XLSX; verify the choices for other releases.
3. Keep format-specific choices scoped to the requested export path:
- **PDF:** use [pdf](../pdf/SKILL.md) for PDF-specific fonts, encryption and conformance. Inspect glyph coverage, wrapping, pagination and image quality; an ordinary exporter or a property flag does not certify PDF/A or PDF/UA.
- **XLSX/XLS:** use [spreadsheets](../spreadsheets/SKILL.md) for workbook-specific layout, cell types, formulas, sheets and merges. Do not assume that PDF geometry makes a useful spreadsheet.
- **HTML:** use [html](../html/SKILL.md) for image/resource handlers, links, browser delivery and hyperlink policy.
- **CSV and metadata:** use [data-exports](../data-exports/SKILL.md) for field mapping, schema, escaping and the null policy; distinguish metadata output from the page-oriented report.
- **DOCX, PPTX and ODF:** verify the editable structure and format-specific pagination limits; do not promise pixel identity across exporters.
4. Reuse a filled print only when its data, pagination and resource assumptions fit every export. If an alternate export needs different fill settings, fill again with fresh data. Do not disable pagination globally for every output; scope flow-oriented settings to the exporter that needs them (see [layout-pagination](../layout-pagination/SKILL.md)).
5. Export to bounded paths with a proper stream and resource lifecycle. Propagate failures using the project's conventions; never return an empty "successful" file.
## Validate and deliver
Assert output with an independent parser: PDF text and page count, spreadsheet cell types, values and sheets, parsed CSV, or HTML resource and browser checks. Then inspect the rendering where relevant. State the tested format, dependency and configuration changes, commands and actual results. File existence alone is insufficient.
Without tools, provide version-qualified guidance and label export and render checks unverified. Do not request production data or silently install a converter.
## Sources
- [Exporter API](https://jasperreports.sourceforge.net/api/index.html)
- [Configuration reference](https://jasperreports.sourceforge.net/config.reference.html)
- [Exporter samples](https://jasperreports.sourceforge.net/sample.reference/README.html)
- [Version and edition changes](https://github.com/Jaspersoft/jasperreports/blob/master/changes.txt)
— ‹guest · 2026-11-29› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.