Command Line Operation - Settings and Examples

Format for running a report from the command line:
"C:\Program Files\Easy View\EasyView.exe" CMD OPT1=Setting1, OPT2=Setting2, OPT3=Setting3

Command Sections:

Options:

General Options

Login Settings

Report Parameters

You can enter as many parameter values as you need from the command line. Parameter values can be entered by the Parameter name or the parameter number.  The preferred method is to use the parameter name.

Parameter values by name:
The format for entering the parameter values by name is P[YourParam]=YourValue. The section between the [ and ] should match a parameter name in your Crystal Report file exactly.  If you are not sure what the parameter names are, you can run the report from the Quick Launch window and note the names on the parameter screen.

Parameter values by number:
The format for entering the parameter values by name is P1=YourValue1,P2=YourValue2,P3=YourValue3 ....  The only limit to the number is the number of parameters in the report file. If you use this method make sure the parameter numbers match the order of the parameters you see in the parameter screen when run manually exactly.

Parameters with multiple values:
If a report has a parameter that allows for multiple values in a parameter you can enter the same parameter more than once with a different value each time. 
P[PartNumber]=Value1,P[PartNumber]=Value2,P[PartNumber]=Value3.....
or P1=Value1,P1=Value2,P3=Value3.....

Parameters with range values:
If a report has a parameter that requires a range value you can enter it like this P[YourParam]=[StartValue][EndValue] or P1=[StartValue][EndValue].  The first set of brackets contains the start value. The second set of brackets contains the end value.

Parameters with variables:
If you are using a variable with a parameter you need to substitute the <> with (). The <> are not legal characters in a command line string.
Examples:
<Date> should be replaced with (Date)
[<Date-7>][<Date>] should be replaced with [(Date-7)][(Date)]

Printing Options

General Export Options

HTML Export Options

XML Export Options

Excel Export Options

Excel (Data Only) Export Options

Text Export Options

Character Separated Values (CSV) Export Options

PDF Export Options

Editable RTF Export Options

Email Settings

Examples:

Changing the separator character: You can change the default separator character from a comma to another character by modifying the command line settings.

Examples:
Before: "C:\Program Files\Easy View\EasyView.exe" CMD M=Q,R=C:\BlankReport.rpt
After: "C:\Program Files\Easy View\EasyView.exe" CMD [!] M=Q!R=C:\BlankReport.rpt

This example changes the separator character from the default comma to an exclamation mark. This setting can be changed to any single character as long as it does not violate any Windows command line rules (like using < or > for example). The character must be the first setting after the CMD text and be surrounded by [ on the left and ] on the right.

<< Previous - Next >>