0
인벤토리 시스템에 모든 구매 항목을 표시하려고했지만 내 수정 보고서 PS에 표시되지 않습니다.이 처음 Crystal Report를 사용합니다. 여기 내 코드는Vb.net 크리스탈 보고서에서 항목을 표시하지 않습니다.
입니다.Dim show As String = String.Empty
show &= "select * from purchase_report "
show &= "where [email protected]"
Using conn As New SqlConnection("Server=WIN10;database=purchase_stock;user=admin_report;password=54321")
Using cmd As New SqlCommand
With cmd
.Connection = conn
.CommandType = CommandType.Text
.CommandText = show
.Parameters.AddWithValue("@build", report.Text)
End With
Try
conn.Open()
Dim da As New SqlDataAdapter(cmd)
Dim ds As New DataSet
da.Fill(ds)
If ds.Tables.Count > 0 Then
CrystalReportViewer1.ReportSource = ds.Tables.Count
End If
conn.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Using
End Using
End Sub
End Class