type data in crystal reports

0

I want to change the data type in a dataset so that it shows in the report of type number is in crystal reports and c #, this has a dataset in c # but when I click it in the crystal it only gives me the fields in chain format and I need in number for some summations that the report makes, some way of changing the data types can be done directly in the code of the query:

SqlDataAdapter da = new SqlDataAdapter(cmd);
                //a.CFECHA between '"+Program.strFechaIn+"' and '"+Program.strFechaFi+"' and 
                Reportes Ds = new Reportes();
                da.Fill(Ds, "Reportes1"); 
                Reportes.SetDataSource(Ds);
                this.crystalReportViewer1.ReportSource = Reportes;
    
asked by CHARLY 10.02.2018 в 18:27
source

1 answer

1

You have to go to the view of your dataste, right click and select properties. When you select your data, you change it in the DataType option.

    
answered by 10.02.2018 / 18:29
source