Creating Projects from Existing Command Lines

So you're excited about the new project file capability of Report Commander, but you have a lot of command lines that you generated using Report Commander 1.x, and you don't want to build projects for all those from scratch. We can help! Report Commander can turn those command lines into projects for you, using any of three methods:

Command-Line Conversion from the Command Line

You can create project files from your existing Report Commander command lines by running the command and adding the -exportproject option to the command line.

For example, suppose you have a scheduled task to run this export command every day:

"c:\program files\report commander\adcrutil.exe" -report="C:\reports\dailysales.rpt" -login!=dbserv1.customerdb:batchuser:pGNXQoGmNboLH/UtHMMong== -suppressempty -exportformat=PDF -exportfile="dailysales.pdf" -removefile -emsender="Report Distribution <[email protected]>" -emrecipient="[email protected]" -emsubject="Daily Sales Report" -emtext="Attached is the daily sales report for {MMM d, yyyy}" -parameters "{yyyy-MM-dd}~{yyyy-MM-dd}"

You can run this command from the command prompt to turn that command line into a project file:

"c:\program files\report commander\adcrutil.exe" -report="C:\reports\dailysales.rpt" -login!=dbserv1.customerdb:batchuser:pGNXQoGmNboLH/UtHMMong== -suppressempty -exportformat=PDF -exportfile="dailysales.pdf" -removefile -emsender="Report Distribution <[email protected]>" -emrecipient="[email protected]" -emsubject="Daily Sales Report" -emtext="Attached is the daily sales report for {MMM d, yyyy}" -parameters "{yyyy-MM-dd}~{yyyy-MM-dd}" -exportproject="c:\my projects\dailysales.rcproject"

After this runs, you will have a new project file created ("c:\my projects\dailysales.rcproject"), which you can then edit using the Command Line Builder or Project Editor.

Using this approach you can create one project per existing command line.

The source report (.rpt file) must be available when you run the conversion, as Report Commander needs to read information from the report file. Make sure the -report option points to the file.

Command-Line Conversion in the Project Editor

You can import existing command lines from within the Project Editor, as described in the New Project from Command Line(s) topic. Using this approach you can combine several command lines into a single project, and/or add commands from a command line to an existing project.

Command-Line Conversion in the Command Line Builder

You can import an existing command line from within the Command Line Builder, as described in the Loading Settings from Existing Command Lines topic. You can then update options and re-generate the command line, or save the settings to a project file.