Skip to Content
0
Sep 04, 2013 at 01:51 PM

ReportParameters do not have DefaultValues

20 Views

Hello all. Very new to the Crystal game here...

I've been handed a legacy C#.NET custom reporting-launch application, and asked to upgrade to Crystal version 12. (At least, that's the version number on the DLLs. The proliferation of versioning as Crystal is bought and sold is a little confusing.)

The direct launch of the reports (i.e., the "Run Now" button in our app) -- ultimately, a redirect to the activex url -- seems to work fine: the report prompts for the report parameters, and offers the default values correctly. All good.

The "scheduling" part -- which is our own custom code -- is not seeing any default values. When I try to acquire my Report via this code

string query = "Select SI_NAME, SI_DESCRIPTION, SI_PROCESSINFO.SI_PROMPTS From " +

"CI_INFOOBJECTS Where SI_ID=" + reportID;

m_infoObjects = InfoStore().Query(query);

m_infoObject = m_infoObjects[1];

Report report = (Report)m_infoObject;


... all of the members of my Report.ReportParameters collections have a DefaultValues.Count = 0.

What am I doing wrong?

tia,

j