Skip to Content
0
Former Member
Jul 30, 2012 at 07:55 PM

CrystalDecisions.Shared.ParameterField.DefaultValues count = 0 should have values

155 Views

Hi,

I have an RPT file that has two parameters, one is Static other Dynamic

CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

report.Load("myreport");

When I look at report.ParameterFields[0].DefaultValues.Count, I see the count is the 3 static values I set up..

But when I look at report.ParameterFields[1].DefaultValues.Count, count is 0 where it should be list of values from dynamic pick list..

-----------------------------------------------------------

I open up my RPT file in Crystal Reports 11 and do preview.. I see both the static and dynamic parameter defaults.

I am using Visual Studio 10 with CR sp 3 for VS10

Why is the DefaultValues for my dynamic pick list empty?