Accepted Answer
Not sure what would be causing the "Object not set..." error but the error in your second post indicates that you have not set a value for the parameter. On the Parameters page you need to Edit the parameter and set a value before you execute. Report Commander does not prompt you for parameter values because it is designed to run reports unattended. It is also not going to prompt you for an email address. Once you have it working in the Command Line Builder, go to the Command Line tab and it will show you the command line you need to execute the report with the current settings. You will take this command line and have your program generate the same command line for each batch you need to run, changing the batch number and email address on the command line.
Accepted Answer
Bill--thanks for the reply. I am still working through the occasional "object not set" issue but thank you for your clarification on the "prompts" regarding Report Commander. I was operating under the wrong assumption---expecting a prompt at some point. I am now struggling more whether this report process can be automated. I have been trying to "re-concatenate" the report commander command line to substitute the dynamic e-mail address and batch #. One issue is the batch #'s and e-mail addresses are not directly linked--I need some form of a "look-up" process as the batch # relationship changes daily as new batch numbers are created. I have not been able to successfully "re-concatenate" the command line yet, though I have been able to take the command line without modification (i.e., leaving the batch # and e-mail "fixed" from my original creation of the command line string and drop it into a CMD window and it runs. I was hoping to be able to somehow "re-concatenate" the command line string and then copy it to the CMD window automatically but this approach appears unworkable without significant human interaction. I can't seem to find the "software" to help me modify command line string automatically or certainly without the significant human intervention I have experienced so far. Any advice is welcome!! JimC