Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportParameter Problem

Status
Not open for further replies.

sup919

Programmer
Jan 10, 2002
31
TH
Hi there,
I have a problem regarding selecting datatype in ReportParameter in C#
I ve create Reportparameter but I want the value to be integer not String. This are my coding

ReportParameter[] p = new ReportParameter[20];
p[0] = new ReportParameter("NewMale", newpm, true);
p[1] = new ReportParameter("NewFemale", newpf, true);

Note: if newpm.ToString(); it works fine but I want the input to be integer not String inorder to pass value to Report


For ReportParameter in the Report,DataType is set to Integer so i think all i need is how to create new ReportParameter in interger from the form
(since i need to added value up across various places)

many thanks
sun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top