Skip to contentSage BusinessVision support ends December 2026. Plan your move to Spire →
Gemini Logic
← All articles
SpireCrystal ReportsReporting

Customizing Spire Forms and Reports in Crystal Reports

Gemini Logic ·

Every printed form and report in Spire ERP is a Crystal Reports file, so customizing an invoice, packing slip or statement means editing an .rpt file in Crystal Reports and putting it back on the Spire server. The safe way to do it is simple: work on a copy, give it a clear name, test it in one company before releasing it to all of them, and keep your own master copies so a Spire upgrade never catches you off guard.

This guide covers how Spire finds and displays reports, which Crystal versions to use, and the practical habits that keep custom forms working for years.

How Spire uses Crystal Reports

Spire’s manual says plainly that Spire uses Crystal Reports for all of its reports. There is no separate form designer inside Spire. If you want your logo moved, a new column on the pick slip or different wording on a statement, the change happens in Crystal.

Spire reads a few properties from each report, set in Crystal under File > Summary Info:

Summary Info field What Spire does with it
Title The name users see when they print the report in Spire
Comments A short description shown to users when they print
Template Tells Spire where to present the report (which screen or module)
Author Who developed the report
Keywords, Subject Not used

The Template field is the one people miss: an invoice with the wrong template never shows up on the sales order print screen. To see which templates and parameters a screen offers, Spire lets you turn on the user setting Enable report development tools (under Reports / Development). After that, clicking Print shows the available report fields beside the report list, as described in the Report Templates topic.

Where custom reports live

According to the Custom Reports topic, custom reports can be brand new or edited versions of stock reports, and they are stored on the Spire server:

  • All companies: C:\ProgramData\Spire\Reports
  • One company only: a subfolder named after that company’s database, for example C:\ProgramData\Spire\Reports\{Database Name}. The database name is shown in the Spire Administration company list.

You can also upload reports through Spire Administration, which shows each report’s title, file name, company, templates, whether it is a system report and when it was last modified. From there you can upload, delete or toggle a report’s status. Stock system reports cannot be deleted, only disabled.

One rule matters more than any other: if your custom report has the same file name as a stock report, it replaces the stock report. If the file name is different, both appear when users print.

Which version of Crystal Reports to use

The current Spire 3.13 manual says stock reports are built with Crystal Reports 2020 Support Pack 3 Patch 5, and that you can customize reports with Crystal Reports 2013, 2016 or 2020 as long as you have the latest service packs. Spire recommends at least Service Pack 5 for 2016 and Service Pack 1 for 2020 (source).

Two cautions:

  1. Older Spire manuals list different versions. The 3.8 manual mentions Crystal 10, XI and 2013. Check the manual for the Spire version you actually run.
  2. SAP has released newer Crystal versions than the ones Spire’s manual lists. If you are buying Crystal today, confirm with Spire or your Spire partner which version is supported for your release before you pay for it.

Crystal Reports is sold by SAP, and Spire notes that owners of an earlier version may qualify for upgrade pricing.

Copy, never edit the stock form

Save a copy under a new file name before you change anything, and keep the original untouched.

A different file name keeps the stock report as a fallback, makes your reports easy to spot, and keeps Spire’s updates to stock reports from colliding with your work. If you do not want users choosing between two invoices, disable the stock one in Spire Administration rather than overwriting it.

Naming that saves you later

A simple naming pattern pays off at every upgrade:

  • File name: a company prefix plus the form, for example ACME_SalesInvoice.rpt or ACME_CustomerStatement.rpt.
  • Title: what users should see, such as “Sales Invoice (ACME logo)”. Make it different from the stock title so nobody prints the wrong one.
  • Comments: one line on what changed and when, for example “Remit-to address and net 30 terms, updated March”.

Keep a short list of every custom report, the stock report it came from and which companies use it.

Test in one company first

Because Spire supports company-specific report folders, you can release a new form to a single company before it goes to everyone. Put the report in the subfolder for a test or sample company, print real documents from it, and only then copy it to the shared folder or your live companies.

When testing, print multi-page documents, long addresses and descriptions, foreign currency and tax lines, and a one-line document. Check emailed PDFs too, since logos and fonts can look different from paper.

Common form edits

Most customization requests are the same handful of changes.

  1. Logo. Insert it as a picture in the header. Keep the image file small, since a large logo inflates every emailed PDF.
  2. Terms. Short terms fit in the footer. If terms differ by customer, pull them from the data rather than typing them into the form.
  3. Remit-to and payment instructions. Put them near the total or in the footer. If you bank in more than one currency, make sure the right instructions print with the right invoice.
  4. Extra fields. Weight, country of origin, customer part number. If it is not a standard Spire field, it is often a user defined field.
  5. Hiding fields. Suppress fields instead of deleting them, so you can bring them back later.

Adding user defined fields

Spire stores user defined field (UDF) values in a JSON column, and Crystal needs a SQL Expression to read them. The Spire manual’s UDF example works like this:

  1. In Crystal, open the report and use Database Expert to add the tables you need.
  2. Set the join to a Left Outer Join, so records without UDF values still print.
  3. Create a new SQL Expression field.
  4. Enter an expression such as (("inventory"."udf_data")->>'StoreTemp')::numeric.
  5. Place the expression on the report.

UDF names are case sensitive, table and field names go in double quotes, and you add ::numeric, ::date or ::boolean for numbers, dates and true/false fields. Leave off the suffix for text.

Keep reports fast

A slow report usually has one of a few causes.

  • Filter early. Put date ranges and other limits in the record selection formula so the database does the filtering, instead of pulling everything into Crystal and suppressing what you do not want. This matters most on large transaction and inventory history tables.
  • Avoid subreports in the detail section. A subreport in a detail section runs once for every row. On a 500-line report that is 500 extra queries. Use a SQL Expression, a join or a group-level subreport instead.
  • Do not save data with the report. Saved data makes files larger and can show stale numbers. Refresh instead.
  • Be careful with Verify Database. It can reset table links and subreport parameters. If the connection needs to change, Set Datasource Location is usually the safer choice.

Keeping custom reports through Spire upgrades

Spire upgrades can change stock reports and, occasionally, the database structure that reports read. A few habits protect you:

  1. Keep master copies off the server, somewhere backed up, along with your custom report list.
  2. Back up the reports folder before every upgrade.
  3. Test every custom report after the upgrade, starting with invoices, statements and cheques.
  4. Compare against the new stock version. If Spire fixed something in a stock form, your copy will not get that fix automatically.
  5. Fix broken fields at the source. If a field is missing, check whether the column was renamed or moved before rebuilding the report.

When Crystal is not the right tool

Crystal is excellent for fixed layouts that must look the same every time. It is a poor fit for exploring data, such as margin by customer, then by product line, then against last year. For that, you have options. Spire’s grids can be filtered and exported to Excel for pivot tables. Our Report Design service builds and changes Crystal Reports, Power BI dashboards and Analytics for Spire reports. Analytics for Spire is our own reporting app with a visual report builder that needs no SQL, pivot tables and charts, 60 templates and scheduled email, over a read-only connection to Spire. We wrote about the kinds of patterns it shows in What Analytics for Spire Catches That Your Monthly Reports Miss. If your team wants to maintain Crystal reports themselves, our training covers Crystal Reports and Power BI.

Getting help

If a form needs changing or a custom report broke after an upgrade, get in touch. We can review what you have and keep it working through the next Spire upgrade.

Keep reading

Want help with this in your own business?

Talk to the team that wrote it. A free consultation, no slides.