Go to home page Contact Tatum Consulting
Click here to print this page

Crystal Reports Std - Batch Command Switches

Command Switch Value Description
Batch Mode/ Required Info:
Batch Mode

-b

 

Turn on Batch Mode

Report Name

-rn

Report Name (With Path)

The Report to Run:
(Use Brackets)
[C:\program files\Test.rpt]

Report Destination

-d


PRINTER
EXPORT
EMAIL

Output Destination

DB Connection Info:
Database Connection Type

-dc

ACCESSDATABASEPASSWORD
ACCESSWORKGROUPSECURITY
ACCESSBOTHDATABASEWORKGROUP
ODBC
NTTRUSTED

Database Connection Info

UserID

-u

UserID

User ID (No Spaces)

Password

-pw

Password

Password (No Spaces)

Database Password

-dpw

Database Password

Database Password (MS Access Only) (No Spaces)

EXPORT/EMAIL Requirements:
File Type(EXPORT/EMAIL Only)

-ft

PDF
XLS
XLSDATAONLY
WORD
CSV
TEXT
RTF
HTML
XML
REC
CRYSTAL
TAB

The Report Output File Type

File Name

-fn

Output FileName with Path (Fully Qualified)

The Output FileName
(Use Brackets)
[C:\program files\Test.pdf]

EMAIL Only (Support MAPI/SMTP via OutLook/OutLook Express
Email System

-e

MAPI (Default)
SMTP>

Email Send Method

Email Profile (OutLook Profile)

-ep

Email Profile to Send From

Must be enclosed in Brackets:[Lee Taylor]

Email Subject

-s

Email Subject

Must be enclosed in Brackets:[MonthEnd Report 2003]

Email To1

-to1

Email Address 1

jessielee@tatumconsulting.com

Email To2

-to2

Email Address 2

leetaylor@tatumconsulting.com

Email To3

-to3

Email Address 3

leetaylor@tatumconsulting.com

Examples
Example 1

Print Only - No Security

-b -rn [C:\reports\month end.rpt] -d PRINTER

Example 2

Export to PDF with ODBC Security

-b -rn [C:\reports\month end.rpt] -d EXPORT -dc ODBC -u mtatum -pw testreport -ft PDF -fn [C:\reports\results\month end.pdf]

Example 3

Email to PDF with ODBC Security

-b -rn [C:\reports\month end.rpt] -d EXPORT -dc ODBC -u mtatum -pw testreport -ft PDF -fn [C:\reports\results\month end.pdf] -e MAPI -ep [Default Profile] -s [Test Report] -to1 mtatum@tatumconsulting.com