fyiReporting Software, LLC
Home
Products
Downloads
Forum
Release Notes
Report Topics
DataSets
Data Sources
Expressions
Overview
Functions
Report Parameters
Report Items
Chart
Image
List
Matrix
Rectangle
Subreport
Table
Textbox
Designer
Overview
How do I?
Create a New Report
Create a Table
Graph data
Cross tabulate data
Do Labels
Options
Menus
File
Edit
View
Data
Format
Tools
Window
Help
Error Handling
Examples
ASP.NET
Code Examples
RDL Examples
RdlViewer
Desktop Server
Command Line Utility
Chart Map Designer

Generating Reports using a Command Line

The RdlCmd.exe program runs a RDL report file and creates an output file for each type specified. The project source code for RdlCmd is included as part of the install in the CodeExamples\RdlCmd directory as an illustration of how to write command line programs using the RDL project.

RdlCmd /ffile.rdl /tpdf [/s] [/ooutputdir] [/ppswd]

/f is followed by a file or file list. e.g. /ffile1.rdl+file2.rdl Report arguments can optionally be passed by using '?' after the file. Multiple report arguments are separated by '&'. e.g. /ffile1.rdl?parm1=XYZ Inc.&parm2=1000
One special argument is 'rc:ofile' which names the output file. e.g. /ffile1.rdl?parm1=XYZ Inc.&parm2=1000&rc:ofile=xyzfile

/t is followed by the type of output file: pdf, html, mht, xml, csv, xslx, rtf, tif, tifb. e.g. /tpdf+xml"

/o is followed by the output directory. The file name is the same as the input (or the rc:ofile parameter) except with the type as the extension.

/p is followed by the pass phrase needed when a report uses a shared data source.

/s displays elapsed time statistics.

/i is followed by an image filename to be stamped onto first page of any PDF generated. Location arguments x, y, h, w can optionally be passed using '?' Arguments are separated by '&'. Only pdf files support this option. For example, /i"copyright.gif?x=4in&y=3in&w=7cm&h=16pt" /u
/l outputs the license and warranty

/? outputs this text

In this example, the usage report is run creating pdf and html files in the c:\reports directory. The report uses a shared datasource that was created with the password "passphrase".

RdlCmd /fc:\documents\reports\usage.rdl /tpdf+html /ppassphrase /oc:\reports

Copyright © 2005-2008 fyiReporting Software, LLC.   All Rights Reserved.