Skip to content

Using RdlCmd

Peter Gill edited this page Jun 8, 2026 · 8 revisions

Using RdlCmd

RdlCmd is a command-line tool that generates report output files from .rdl report definitions.

Download

See the Downloads page. Self-contained builds require no .NET SDK on the target machine.

Basic syntax

RdlCmd "/f<file.rdl>" "/t<type>" "/o<outputdir>"

Options

Flag Description
/f Report file path. Chain multiple files with +. Append parameters with ?name=value&name2=value2. Use rc:ofile=name to set the output filename.
/t Output type(s): pdf, html, mht, xml, csv, xlsx, rtf, tif, tifb. Chain with +.
/o Output directory. Output filename matches the input filename with the type as extension.
/c Connection string override — replaces the connection string embedded in the report.
/p Pass phrase for reports using a shared data source.
/s Display elapsed time statistics.
/i Image filename to stamp onto the first page of a PDF. Append position with ?x=4in&y=3in&w=7cm&h=16pt.
/u Report user ID.
/l Output licence and warranty.
/? Output help text.

Examples

Generate a PDF

RdlCmd "/fC:\reports\sales.rdl" "/tpdf" "/oC:\output"

Generate PDF and CSV in one pass

RdlCmd "/fC:\reports\sales.rdl" "/tpdf+csv" "/oC:\output"

Pass report parameters

RdlCmd "/fC:\reports\sales.rdl?StartDate=2024-01-01&EndDate=2024-12-31" "/tpdf" "/oC:\output"

Override the output filename

RdlCmd "/fC:\reports\sales.rdl?Region=West&rc:ofile=west-sales" "/tpdf" "/oC:\output"

Produces C:\output\west-sales.pdf.

Override the connection string

RdlCmd "/fC:\reports\sales.rdl" "/tpdf" "/oC:\output" "/cServer=prod-db;Database=Sales;Integrated Security=SSPI"

Batch — multiple reports

RdlCmd "/fC:\reports\report1.rdl+C:\reports\report2.rdl" "/tpdf" "/oC:\output"

Stamp a watermark image onto the first page

RdlCmd "/fC:\reports\sales.rdl" "/tpdf" "/oC:\output" "/iC:\images\draft.png?x=1in&y=1in&w=6in&h=1in"

Linux / macOS

RdlCmd runs cross-platform. On Linux, install the required fonts first — see Linux — PDF export and Fonts.

./RdlCmd "/f/home/user/reports/sales.rdl" "/tpdf" "/o/home/user/output"

Calling from other languages

See the dedicated pages:

Clone this wiki locally