Joined: 10 Mar 2009
Online Status: Offline
Posts: 8
Topic: SQL Command Parameter Posted: 10 Mar 2009 at 10:41am
I would like to programmatically change a parameter that I created via the 'Add Command To Report' with the create button for a parameter list. I tried several approaches. The following approaches used the variable 'report' defined as reportDocument:
report.SetParameterValue("Parm1", "MyValue"); This seems to only modify parameters created with the Field Explorer Parameter Fields option. The report didn't get any results.
Created a DataReader with the SQL that I wanted, and then tried to set report.SetParameterValue with that DataReader. The report didn't get any results.
Tried report.ParameterFields.Add(parameterField), but didn't get any results.
Does anyone know how I can set the command parameter for a CR9 rpt file via VS C#.net 2005?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum