Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2008 Crystal Report fillds not showing decimals

$
0
0
Im sending Datagridview records to crystal report by data table and im using this code.


Dim ds As New DataTable



With ds
.Columns.Add("Naziv")
.Columns.Add("Ed.Mera")
.Columns.Add("Kolicina")
.Columns.Add("Neto Cena")
.Columns.Add("%")
.Columns.Add("Iznos")
.Columns.Add("Cena po ed.mera")
.Columns.Add("Vkupen Iznos")


End With
For Each dr As DataGridViewRow In Me.DataGridView1.Rows

ds.Rows.Add(dr.Cells("Column3").Value, dr.Cells("Column13").Value, dr.Cells("Column4").Value, dr.Cells("Column11").Value, dr.Cells("Column8").Value, dr.Cells("Column12").Value, dr.Cells("Column5").Value, dr.Cells("Column6").Value)





and in number fields in crystal report i want the record to be shown as decimal ex. not 20.668686 bu 20.66 or 20.67




and in the number fields in my crystal report when i press format object and i goo to number tab and i set the style to (1,123.00) press ok and nothing hapens when i printpreview my report the number ar not shown as i mentioned before. 20.66 but is 20.66686 example.

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>