The built-in command-line wizard helps you generate command-line syntax based on the options you select. You can save the generated command to a .bat file and use it to schedule or automate report generation tasks.
To open the command-line wizard, on any page of the Data Report Wizard, select Save Command Line in the lower-left corner.

The table provides options available in the command-line wizard.
Note
To include an option, select the checkbox for the option. To exclude an option, clear the checkbox.
| Option | Description |
|---|---|
| Report File | Specifies the full path and file name of the report template (.rdb). Click the ellipsis (…) to browse for the file. Note: You can use the Data Report Wizard to create the report template. For more information, see Create a report template. Usage: /reportfile:<file_path> |
| Connection | Specifies the connection string. To generate the connection string, click the ellipsis (…) and select an existing database connection or create a new one. The option is automatically filled with the connection string. Usage: /connection:<connection_string> |
| Password | Specifies the server password. This value overrides the password in the connection string. Usage: /password:<pw> |
| Report Parameters | Specifies values for parameters declared in a query script. Usage: /parameters <param_name1>:<param_value1> <param_name2>:<param_value2> <param_name3>:<param_value3> |
| Format | Specifies the output format of the generated report. Available options:
Usage: /format:<PDF|HTML|MHT|RTF|TEXT|CSV|EXCEL|EXCEL2007|BMP|EMF|GIF|JPEG|PNG|TIFF|WMF> |
| Type of report result | Specifies where the generated report should be delivered. Available options:
|
| The path to the generated report | Specifies the path to the folder where the generated report is saved. The option is available when Type of report result is set to Directory. Click the ellipsis (…) to browse for the folder. Usage: /result folder:<path> |
| Address | Specifies the email address for sending the report. The option is available when Type of report result is set to Email. Usage: /result email:<email_address> |
| The path to the FTP folder | Specifies the path to the FTP folder where the generated report is saved. The option is available when Type of report result is set to FTP. Usage: /result folder:<path> ftplogin:<username> ftppassword:<password> |
| Login | Specifies the username for FTP authentication. The option is available when Type of report result is set to FTP. Usage: /result folder:<path> ftplogin:<username> ftppassword:<password> |
| Password (FTP) | Specifies the password for FTP authentication. The option is available when Type of report result is set to FTP. Usage: /result folder:<path> ftplogin:<username> ftppassword:<password> |
| Echo OFF | Wraps all text in the .bat file within the @Echo OFF ... Echo ON block, preventing commands from being displayed in the command window. |
| Keep opened | Adds the pause command at the end of the .bat file to keep the command window open after execution. |
| PowerShell | Adds the & symbol at the beginning of the .bat file to ensure PowerShell compatibility. |
The text box displays the generated script with the specified options.

To save the settings in the .bat file, click Save.
To close the dialog, click Cancel.
To verify the settings, click Validate.
If the parameter validation succeeds, the following message appears:

If the parameter validation fails the tool displays the error, for example:
