Reporting Guide

04. Coming from Crystal Reports

You already know what a good report is: groups, subtotals, running totals, a cross-tab, a chart, a parameter prompt, a subreport. You do not need those ideas explained. You need the translation, and an honest list of where the translation breaks.

This page gives you both. It is direct about the gaps, because it is better to discover a missing feature on page 3 of a guide than on day 3 of a project.

Already have .rpt files? Try the importer first: 04a Import a Crystal report. It builds a recipe, a Word template and a list of what did not convert.

Suggested path: read this page, skim 01 How it works, then do lessons 3 to 9 of 02 Your first report with the comparisons below in mind. Lessons 13 to 17 of 03 Next steps then cover what Crystal people ask for most: multi-value parameters, group order, summary-only layouts, rank, bar codes, labels and headers with fields.


1. The mindset shift, in three sentences

  1. Crystal is a band-based designer over a live database connection. You drag fields onto Report Header, Group Header, Details and Footer bands, and the engine runs your SQL and lays the bands out.
  2. DataPublisher is a Word document, a data file and a recipe. The document is the layout. The recipe does the grouping and adding up before the document is filled in. The output is a document per record (for example one statement per customer), not one long report.
  3. You design in Word, not in a report designer. If you can make it in Word, it belongs in the template. If it needs arithmetic, it belongs in the recipe.
   CRYSTAL                                          DATAPUBLISHER
   ─────────────────────────────────────           ─────────────────────────────────────────
   ODBC / OLE DB / SQL command                      CSV files or a Data Set (tables + links)
          │                                                  │
   Record Selection, Group Selection                Parameters + filters; "keep only groups where"
          │                                                  │
   Groups, Sort, Summary, Running Totals            Recipe: group by, calculations, running, top, sort
          │                                                  │
   Formula fields                                   Recipe formulas (calculated columns, totals)
          │                                                  │
   Section Expert / bands / Format Editor           Word template with <<Field>> and {{ForEach}}
          │                                                  │
   Preview in the Crystal viewer                    Preview on the Summaries & Charts screen
          │                                                  │
   Export to PDF / schedule in Crystal Server       Word or PDF; Run tab; Schedule tab; e-mail

2. Concept map

Crystal concept DataPublisher equivalent Notes
An existing .rpt file The Import a Crystal report wizard Reads the design and builds a recipe, a Word template and a conversion report. See 04a
Database connection A Data Set (or loose CSV files) Data is read from files, not through ODBC. A connector can feed data from a customer's database, but a recipe summarizes the tables it is given
Table links (Database Expert) Links in the Data Set One-to-many: a customer carries its invoices
SQL Command None No free-form SQL. Prepare the table first, or have a connector deliver it
Record Selection formula Filters, driven by parameters Tests: is, contains, ne, eq, lt, lte, gt, gte. All filters apply together
Group Selection formula (HAVING) Keep only groups where (having) Tests a group's own total. Every condition must hold. Runs before top-N, sort and running totals. Grand totals are not changed. Works on summary tables, on any level of a grouped layout (level) and on cross-tab rows or columns (their Total)
Skip a whole record (for example zero balance) Skip records where (keepRecords) Tests a per-record total. The record gets no document
Parameter field Parameters Text, number, date or date range. Choice lists. Choices from a data column. Several values (multiple), an (All) choice, and lists that depend on another parameter. Printed with <<Name>>
Group (Insert Group) Group by in a summary table Columns, or a date bucket (day, ISO week, month, quarter, half year, year, day of week)
Sort Sort A list of columns, with descending per column
Group Sort Expert ("All", ascending or descending, by a summary) Order the groups (groupSort) in a grouped layout. Sort with largest first in a summary table Order a level's groups by a subtotal, by Count or by the group's own name, ascending or descending. Ties keep natural order
Summary field (sum, avg, min, max, count) Calculate (measures) Also first, last, distinct count, median, percentile, n-th largest and smallest, mode, standard deviation, variance and weighted average
Rank, Previous(), Next() on a summary Derived columns: Rank, Dense rank, Value of an earlier or later row, Difference from the row before Follow the rows as sorted. Rank is counted inside each record
Top N Keep only the top (top) with an "Other" row Rename or drop "Other". Top only. There is still no bottom-N (you can order the groups smallest first)
Running Total field Running total Restarts for each record by default. Group it differently, or choose "never" for one running total
Percentage-of-total summary A calculated column Total / GrandTotal Format it as percent
Formula field A recipe formula, or a template function See section 4
Cross-tab object Cross-tab and {{CreateReportTable}} Columns are discovered at run time. One calculation per cross-tab
Chart object Charts A picture, not editable. See section 6
Subreport Linked table plus summaries or layouts on it Not an embedded .rpt. See section 5. The importer converts a subreport into a linked table for you
Group Header / Footer A grouped layout (header, lines, footer) {{ForEach}} loops nest up to four levels
Details section The innermost loop, Lines Hide details is "detail": "hide" (tick Summary only: leave out the detail lines)
Report Header / Footer The top and bottom of the template Word text before and after the loops
Page Header / Footer Word's header and footer <<Field>>, functions and {{IF}} work in them. With a page for each record, each record gets its own. No loops and no pictures there. Server and command-line runs (section 7)
Special fields: Page N of M {{PageNumber}}, {{TotalPages}} Live Word fields
Conditional formatting (Format Editor) Highlight rules, and tags such as ConditionalColor Tests on one value
Suppress section / suppress if blank {{IF ... THEN}} ... {{ELSE}} ... {{ENDIF}}, RemoveLineIfEmpty Block IF with an optional ELSE. An IF inside a loop is decided for each row
Suppress if duplicated Blank a value that repeats the line above (suppressRepeats) A grouped layout, per column
Bar codes (a barcode font or a UFL) Barcodes (barcodes): QR or Code 128 A picture for each record or each label. value or pattern
Mailing labels (Report Wizard) A label sheet (tile) and one Word table row Columns across, start part way down a sheet. You supply the sheet's measurements
Drill-down Document links {{LinkTo}} and {{Bookmark}} Jumps inside the document. Works in Word and in PDF. There is no interactive viewer drill-down
Hyperlink on an object {{LinkTo}} for internal jumps External links are ordinary Word hyperlinks
Export to PDF Word .docx or PDF PDF output needs LibreOffice or Word on the machine doing the work
Export to Excel / CSV / text Not offered CSV is an input, not an output
Crystal Server scheduling The Schedule tab, or dp-node job run with Task Scheduler or cron Files are kept for 30 days. Run history. E-mail to each customer
Crystal Server instances / "send to" The run history, Download all (zip), Links for other people, e-mail
Business Views / Universes None Each recipe declares its own calculations. There is no shared semantic layer yet

3. The sections of a Crystal report, translated

A typical grouped Crystal report has bands. In DataPublisher, the bands become text in your Word template, around loops.

 CRYSTAL                                      WORD TEMPLATE
 ───────────────────────────                  ───────────────────────────────────────────────
 Report Header                                <<Customer>>
                                              Statement, January to June 2026
 Group Header #1 (Category)                   {{ForEach:Statement}}
                                              <<Category>>
   Group Header #2 (Month)                      {{ForEach:Group2}}
                                                Month <<Month>>
     Details                                      {{ForEach:Lines}}
                                                  <<InvoiceNo>>   <<Date>>   <<Amount>>
                                                  {{EndForEach}}
   Group Footer #2                                Total for <<Month>>: <<Subtotal>> (<<Count>>)
                                                {{EndForEach}}
 Group Footer #1                              Total for <<Category>>: <<Subtotal>> (<<Count>>)
                                              {{EndForEach}}
 Report Footer                                Customer total: <<CustomerTotal>>

The recipe supplies Statement, Group2 and Lines, the subtotals and the customer total. If you do not want to format it yourself, <<StatementTable>>{{CreateReportTable:|}} gives you the whole thing as one finished table.

Three more things from Crystal's sections, and what happens to them:

Crystal DataPublisher
Page Header / Page Footer The Word header and footer of the template. <<Customer>>, {{IF}} and the page number fields work there, and each record gets its own when each starts on a new page. In one run-together document, the first record's header is kept
Details (suppressed) A layout with "detail": "hide": group headers and footers and their subtotals, with no detail lines. The subtotals still count every row
Group Header with the group sort groupSort: biggest group first, newest month first, or by the group's own name

What is different:

  • There is no Section Expert. Formatting a band means formatting Word text: fonts, shading, borders and tab stops.
  • "New page after group" is a Word setting. Use page break before on the heading paragraph, or make one document per record. There is no PageBreakBefore tag.
  • A document per record is the normal shape. A Crystal report is one long document with group breaks. A DataPublisher run gives you one statement per customer, or all of them joined in one document if you ask (--mode one-per-page on the command line, or Layout "Run them together" on the Run tab).
  • Page headers and footers with fields are fine, but they are not bands. A header or footer cannot repeat a group value that changes inside one page, and it has no loops or pictures. For a value that changes down the page, use the body.

4. Formulas

Crystal has a rich formula language (Basic or Crystal syntax) that can run loops, declare variables and call many functions. DataPublisher has two small, deliberate places for formulas, plus template functions for text.

4.1 Recipe formulas (calculations)

You can use numbers, names, + - * /, parentheses, comparisons (< <= > >= == !=), and five functions: round, abs, min, max and if. Names are not case-sensitive. The reference also lists text and date functions for computed columns.

A formula that cannot be worked out (divide by zero, missing value) leaves an empty value and shows one warning. The rest of the report still runs.

In Crystal In DataPublisher
{Orders.Amount} / {@GrandTotal} Calculated column Share = Total / GrandTotal, format percent
If {@Balance} > 1000 Then 1 Else 0 if(Balance > 1000, 1, 0)
Round({@x}, 2) round(x, 2)
({@Revenue} - {@Cost}) / {@Revenue} A formula total: (Revenue - Cost) / Revenue, format percent
Sum({Orders.Amount}, {Orders.Customer}) A calculation { "sum": "Amount" }, grouped by Customer
Maximum({Orders.Amount}) { "max": "Amount" }

A calculated column can use the table's calculations, running totals, earlier calculated columns, and any total in the recipe (a per-record total is read for the row's own record). A formula total can use other totals, in any order. A circular reference is reported.

4.2 Template functions (text and display)

After a field, {{Function}} changes how it is written: {{FormatCurrency}}, {{FormatDate:MMM d, yyyy}}, {{ToUpperCase}}, {{OrDefault:"(none)"}}, {{ResizeImageTo:380}}, math such as ADD, SUBTRACT, MULTIPLY and DIVIDE, and inline {{IF c THEN "a" ELSE "b"}}. A whole section can be chosen with the block {{IF c THEN}} ... {{ELSE}} ... {{ENDIF}}. These work inside loops, on every row, and an IF there is decided for each row.

4.3 What you will miss

Crystal DataPublisher today
Variables (Local NumberVar, Shared) None
WhilePrintingRecords, EvaluateAfter None. Everything is calculated before the document is made
Previous(), Next() (compare to the adjacent row) Derived columns Value of an earlier row, Value of a later row and Difference from the row before in a summary table (they follow the rows as sorted). Still none inside a free-form formula
For and While loops in formulas None. ForEach repeats over data rows
Nested or free-form expressions in a template Template math takes a list of numbers or fields. Put the arithmetic in the recipe
Group by a computed expression Only date buckets. Add a computed column to the data first
A shared, reusable library of measures (a named expression) None. Calculated columns can reuse earlier calculated columns in the same table

5. Parameters and subreports

Parameters

Crystal DataPublisher
Prompt text label
Data type type: text (default), number, date, dateRange
Default value default
Allow multiple values "multiple": true. A value is written East\|West, and the filter is in (or notIn)
Range values A date range parameter: 2026-02-01..2026-03-31, either end optional. (Number ranges: use two parameters and two filters.)
Static list of values choices
Dynamic list of values (from a field) choicesFrom: { table, column }
Cascading parameters choicesFrom with where: { parameter, column }: the list offered depends on another parameter
"All values" "all": true adds an (All) choice that means no filter. It can be renamed
Required required: true
Printed with {?Param} <<Param>>. Several values print as East, West. A range also gives <<Param_From>> and <<Param_To>>
Optional parameter left blank The filter is skipped, meaning "everything"

A parameter may not have the same name as a column in any table the report loads (the message says so and asks you to rename it).

Scheduled runs need dates that move. A parameter value that starts with = is worked out at run time, in the schedule's time zone: =startOfLastMonth, =endOfLastMonth, =today-30d, =startOfMonth+1m. It is a fixed list of shortcuts, never evaluated as code.

Subreports

A Crystal subreport is a separate .rpt placed inside a report and linked by a field. In DataPublisher, you link a second table to the record and summarize it exactly like the first:

"links": { "payments": "CustName" }

This means: "in payments, the column CustName holds the record key (Customer)." The table is then used as if its column were called Customer. You can group it, total it per record, chart it, filter it, or give it a layout.

Crystal subreport feature DataPublisher
Link on a field links
Different column name in the second source Yes (CustName above)
Values from the subreport used in the main report Totals over the linked table, such as Billed - Received. A record with no rows counts as 0 for sum and count
Subreport inside a subreport Not nested reports. Grouped layouts nest up to four levels
On-demand subreport None (this is a document, not a viewer)
Reusable embedded report with its own layout None. The layout lives in the Word template

6. Cross-tabs and charts

Cross-tabs

Crystal DataPublisher
Rows / Columns / Summarized fields pivot: { rows, columns, value }
One or more summarized fields One calculation per cross-tab (sum, avg, min, max, count, or one of the new functions such as median or distinct)
Grand totals row and column "totals": true (sum and count only, since averages and medians cannot be added up)
Hide rows or columns by a total having inside pivot: the Total of each row (or column) must meet the condition. Totals then add up what is shown
Column set determined by the data Yes. Found at run time and sorted
Report-level cross-tab scope: summary: one cross-tab, the same in every document
Group-level cross-tab scope: perRecord: each record gets its own
Highlighting cells Not styled by rules. The Total row and column are bold automatically
Appearance {{CreateReportTable}}: bold shaded repeating header, right-aligned numbers, shaded bold Total row, rules between rows, no vertical lines

Charts

Crystal DataPublisher
Bar / column bar (one or several series), hbar for long names
Line, area line, area
Pie pie, or donut (the same with a hole)
Stacked, 100% stacked, combo, scatter stack: stacked or percent, combo, scatter
Gauge Not available. bullet charts are the closest
Editable in a viewer No. A picture, which is why it works in Word, PDF, e-mail bodies and .odt
Axis not starting at zero, custom colors axisMin and colors
Chart per group / per record The default (scope: perRecord). Use scope: summary for one chart
Accessibility Alt text is set from the title and values

See 05 Reference for the full list of chart types and options.


7. Not supported today

Read this before you promise a Crystal customer a one-for-one replacement.

Gap Detail Workaround
Per-record headers and footers outside the server and command line Headers and footers with merge fields, for each record, run in server runs (Run and Schedule tabs) and with dp-node. The add-in's own Interactive merge and the Windows desktop merge do not give each record its own header, and the Windows desktop merge does not do .odt headers Run from the Run tab or the command line
Loops and pictures in a header or footer Not merged. They are left as written, with a warning Put them in the body
Bottom-N top keeps the biggest. You can order groups smallest first, but not keep only the smallest N Order the groups smallest first
Page breaks on data change No PageBreakBefore tag Word's page-break-before setting, or one document per record
Variables and loops in formulas No WhilePrintingRecords, no Shared variables, no formula-driven running totals. Running totals are a recipe setting, and rank and previous-row are derived columns Put the arithmetic in the recipe
Named, reusable expressions Each recipe declares its own calculations Copy the recipe
Computed group keys Only date buckets Add a computed column first
Floating or positioned pictures A picture sits in a line of text or a table cell. A barcode must be alone in its paragraph Place it in a table cell
A barcode on each detail line A barcode is per record or per label, not per table row Put the value in a label sheet, or use one barcode per record
Vendor label-stock presets Label sheets work, but the sheet's measurements are yours to enter in Word. None are provided for any label maker Take the sizes from the package or the maker's template, and test on plain paper
Table of contents / index A table of contents in the template is kept but is not rebuilt by the merge. There is no index tag Update fields in Word after the merge
Interactive viewer Not part of the design. There is no drill-down viewer Links inside the document
The Preview tab It does not draw QR pictures, and shows a label sheet as a table, not as pages Look at the finished Word file
Export to Excel / CSV / text Not offered
Things the .rpt importer cannot convert Formulas with loops or shared variables, group selections that are not a total compared with numbers, percent-of-sum summaries, some chart types (see 04a) Rebuild them by hand with the walkthrough below
SVG images PNG, GIF, BMP, TIFF and JPEG only
Page numbers on links A "see page 3" cross-reference can show a stale value until fields update Link by text
A standalone viewer There is no report viewer program. The output is a Word file or PDF Open it in Word

If the customer's report lives and dies on one of these, say so on day one.

Used to be on this list, now available: rank, previous and next row, group sort, summary-only layouts, suppress if duplicated, median, percentile, mode and standard deviation, multi-value and cascading parameters, an "(All)" choice, bar codes and QR codes, label sheets, headers and footers with merge fields, and if / else blocks. Details are in 03 Next steps lessons 13 to 17.


8. A migration walkthrough

Take a typical Crystal report: "Customer Statement. Parameters: date range, region. Group by Category, then Month. Subtotals on each group. Running total of the month. A bar chart of the months. A cross-tab of category by quarter. A grand total of all customers."

Start with the importer (04a). It does much of Steps 2 and 3 for you. Use the steps below to rebuild whatever the conversion report lists as not converted, or to build from scratch when you do not have the .rpt file.

Step 1. Inventory the Crystal report

Make a list. Anything you cannot name, you cannot rebuild.

Element In this report
Tables and links Customers 1-to-many Invoices
Selection Date between {?From} and {?To}; Region = {?Area}
Groups Category, then Month
Summaries Sum of Amount per group, per customer, overall
Running total Month, reset on customer
Formulas Share = Total / GrandTotal
Cross-tab Category by quarter
Chart Bar of month totals
Subreports None

Step 2. Get the data into tables

Export customers and invoices as CSV (or have a connector deliver them). Create a Data Set with both tables and the link (customers.Customer goes with invoices.Customer).

Step 3. Rebuild the logic as a recipe

On the Summaries & Charts screen:

Crystal Build this
Parameters + selection Parameters From, To, Area, and three filters
Group on Category / Month with Sum A grouped layout Statement, grouped by Category and by month of Date, with a subtotal that is the total of Amount
Running total A summary table ByMonth with a running total
Percent of total A calculated column Share = Total / GrandTotal (format percent)
Cross-tab A cross-tab: rows Category, columns Quarter, totals on
Chart A bar chart from ByMonth
Grand total A total GrandTotal, and CustomerTotal per record

Step 4. Lay it out in Word

Copy the page design from the Crystal report (a screenshot is enough) and set it up in Word. Then drop in the tags: the <<Customer>> heading, the loops or <<StatementTable>>{{CreateReportTable:|}}, the chart picture and the cross-tab.

Step 5. Compare numbers, not looks

Run the same data through both. Compare totals first: the per-customer total, the grand total, three random months and the cross-tab's Total row. Then compare the layout.

Step 6. Handle what is left

For each item in section 7 that applies, pick the workaround or tell the customer it is not available yet.

Step 7. Schedule and deliver

Use the Schedule tab (or dp-node job run with Task Scheduler or cron) in place of Crystal Server scheduling. Run in test mode first when e-mailing.


9. Where DataPublisher is the better tool

The output is a document. The statement is a Word file the customer can open, edit, sign and file. A Crystal export is a flat PDF
Design in the tool you already use. There is no report designer to learn. Anyone who can use Word can restyle it
The loop is closed. Generate, distribute (Microsoft Graph e-mail with open and click tracking), collect (DataRequest links), archive and e-sign, all in one product
No runtime to install. No Crystal runtime, ODBC driver or Business Objects server
The recipe is a text file. You can version it, compare it and e-mail it
Plain-language errors. "Did you mean Amount?"

It is not the right tool for interactive dashboards, ad-hoc exploration, live drill-down inside a viewer, or large shared semantic layers. That is a different kind of product.


10. Cheat sheet

I want to... Do this
Total by group + Summary table, Group by, Total of
Subtotals at each group level + Grouped layout
Running total More > + Running total
Top 5 and "Other" Keep only the top
Percent of total Calculated column X / Total, Numbers Percent
Cross-tab + Cross-tab
Chart + Chart (from a summary table)
Prompt for a date range A Date range parameter and one Filter (is between)
Sub-report Add the second table to the Data Set, then + Link a table
Highlight values Highlight values on a table or total
Keep only groups over a total More > Keep only groups where (a layout also has a level; a cross-tab has its own)
Skip records with a zero balance Skip records where (on the Your data card)
Biggest group first More > Order the groups (a layout), or Sort, largest first (a table)
Totals only, no detail lines More > Summary only: leave out the detail lines
Show a repeated value once More > Blank a value that repeats the line above
Median, percentile, mode, standard deviation + Calculation, then Median of, Percentile of and so on
Rank, previous row More > + Moving average, growth, change, rank, RSI or MACD
Prompt for several values or a date range Parameters: allow several values, or type Date range, plus a Filter
An "All" choice, a list that depends on another Offer (All); only rows where ... matches a parameter
QR or bar code + Barcode, then [[Barcode_Name]] alone in a paragraph
Mailing labels or name tags + Label sheet, and a one-row Word table with {{ForEach}}
Page header with a field Type <<Customer>> in Word's header
If / else {{IF c THEN}} ... {{ELSE}} ... {{ENDIF}}
Drill-down {{Bookmark}} and {{LinkTo}}
Schedule The Schedule tab

Next: 02 Your first report (lessons 3 to 9), then 05 Reference.