I have the following code in vb6 and I cannot figure out how to convert it to C# (visual studio 2010) for the life of me.
vb6 -
crtPanelStudyAuditTrail.ParameterFields(0) = "GA_PANEL;" & Trim(txtPanelStudy) & ";True"
crtPanelStudyAuditTrail.ParameterFields(1) = "GA_PANEL_LEG;" & Trim(txtPanelLeg) & ";True"
C# conversion attempt-
crtrptPanelStudyAuditTrail.DataDefinition.ParameterFields["GA_PANEL"].PromptText = "GA_PANEL;" + txtPanelStudy.ToString().Trim() + ";True";
crtrptPanelStudyAuditTrail.DataDefinition.ParameterFields["GA_PANEL_LEG"].PromptText = "GA_PANEL_LEG;" + txtPanelLeg.ToString().Trim() + ";True";
Every time it gets to print, I get a "missing parameter value error"
The print part is correct because I have other code where I am converting formulafields and those print fine.
Any suggestions on how I can convert the parameterfield lines??