Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hy guys
I have one problem.

I have 3 important column, they are: Nama,Hasil, and Satuan.
Nama and Satuan column is getting from database
But not for Hasil column
Value for Hasil column is entered manual,
so How can I get that value in crystal repotrt?
Would you like to see and help me?
Thank you very much


What I have tried:

Dim MyRrpt As New CR_TestOrder2
    Dim dsOrder As New DataSet

    Dim listkode As New List(Of String)
    Dim row As DataGridViewRowCollection
    row = dgv_hasillab.Rows

    dt_order = New DataTable
    dt_order.Clear()
    dt_order.Columns.Add("Pemeriksaan")
    dt_order.Columns.Add("Hasil")
    dt_order.Columns.Add("Nilairujukan")
    dt_order.Columns.Add("Satuan")

    For j As Integer = 0 To dgv_hasillab.Rows.Count - 1
        Dim cek As Boolean = CBool(row(j).Cells(6).Value)
        If cek = True Then
            dt_order.Rows.Add(row(j).Cells(1).Value, row(j).Cells(2).Value, row(j).Cells(3).Value, row(j).Cells(4).Value)
        End If
    Next

    dsOrder.Tables.Add(dt_order)
    'aman -cara I
    Frm_TestOrder.crv_testorder.SelectionFormula = "{tabelpasien.nama}='" + txt_namaOrder.Text + "'"
    MyRrpt.SetDataSource(dt_order)

    Frm_TestOrder.crv_testorder.ReportSource = MyRrpt
    Frm_TestOrder.crv_testorder.Refresh()
    Frm_TestOrder.Show()
Posted
Updated 2-Nov-18 16:48pm

1 solution

What point are you getting stuck on?

Maybe this will help. https://www.youtube.com/watch?v=bezhqdUwqV8
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900