我想通過自動增量ID (textbox and one button)
來搜索人員。我已經使用dataset
並在C#winforms:Microsoft Report viewer
Fill,Getdata --> configure
SQL語句:
SELECT ID, FirstName, LastName, ContactNo, Address, Date, NameOfJob, OtherJob,
Impression, BackPage, NameOfPage, PaperSize, PrintingSize,
DesignRupees, JobRupees, Matter, BlackPlate, BlackPlateRupees, SinglePlate,
SinglePlateRupees, MultiPlate, MultiPlateRupees, Platename,
Lamination, Creasing, Binding, Other, Total, Receive, Due, LastRemaining
FROM bill WHERE [email protected]
後,我已經運行該程序,然後2錯誤顯示:
- 無法從字符串轉換爲十進制
最好的重載方法匹配
WindowsFormsApplication9.DataSet1TableAdapters.billTableAdapter.Fill(WindowsFormsApplication9.DataSet1.billDataTable, decimal) has some invalid arguments
錯誤在這行this.billTableAdapter.Fill(this.DataSet1.bill, txt_search.Text);
錯誤消息「無法從字符串轉換爲十進制」是相當清楚的。您希望在發送小數時發送一個字符串。 –
現在我已經做了一切之後,一個新的問題生成...現在錯誤沒有顯示,但是當我通過ID搜索,然後約束異常生成:未能啓用約束一個或多個行包含違反非空,獨特,關鍵約束。 – ITS