I have this formula in crystal reports (basic syntax) which gets the sum of the GROUPED QTY in my report
Formula = sum({Report_on_Totals.QTY})
When I save the formula, Crystal outputs that 'No Errors were found'.
QTY is grouped by BIDITEMCATEGORY and BIDITEMDESCRIPTION.
The Dataset gets data from my datagridview control via this syntax, which in turn I
set as my datatype onto my CrystalReports form:
Dim dt As New DataTable
dt.Columns.Add("UID")
dt.Columns.Add("BIDNAME")
dt.Columns.Add("Iteration")
dt.Columns.Add("BIDDERCODE")
dt.Columns.Add("BIDDERNAME")
dt.Columns.Add("BIDITEMCATEGORY")
dt.Columns.Add("BIDITEMDESC")
dt.Columns.Add("BIDITEMNAME")
dt.Columns.Add("QTY")
dt.Columns.Add("UOM")
dt.Columns.Add("Materials")
dt.Columns.Add("Others")
dt.Columns.Add("Extension")
dt.Columns.Add("Total")
dt.Columns.Add("Remarks")
For Each dr As DataGridViewRow In DGVNeed.Rows
dt.Rows.Add(dr.Cells(7).Value, dr.Cells(8).Value, dr.Cells(9).Value, dr.Cells(10).Value, _
dr.Cells(11).Value, dr.Cells(0).Value, dr.Cells(1).Value, dr.Cells(3).Value, Int(dr.Cells(4).Value) _
, dr.Cells(5).Value, Decimal.Parse(dr.Cells(12).Value), Decimal.Parse(dr.Cells(13).Value), Decimal.Parse(dr.Cells(14).Value), Decimal.Parse(dr.Cells(15).Value), _
dr.Cells(6).Value)
Next
Dim rptdoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
rptdoc = New OutputGenerator
rptdoc.SetDataSource(dt)
Dim x As New ReportGenerator
x.CrystalReportViewer1.ReportSource = rptdoc
x.Show()
I made sure the Dataset's datatype is corresponding to the proper datatype (Int64 since QTY is a whole number (Is this the right Datatype though?))
The problem is, when I compile, VB outputs an error that says 'A Number Field or Currency Amount Field is Required Here'. Any help would be greatly appreciated.

New Topic/Question
Reply



MultiQuote



|