2016-12-02 52 views
0

這是我送的水晶報表公式:水晶報表「這裏需要一個日期範圍」

string fromdt = dtpfrom.Value.ToString("yyyy-MM-dd"); 
string todt = dtpto.Value.ToString("yyyy-MM-dd"); 
string formular = "{tbl_ItemIssueNote.IsueDate} in (" + "'" + fromdt + "') to (" + "'" + todt + "')"; 

這個工程開發機和一些客戶端機器上,但前面我曾經日期格式這樣:

string fromdt = dtpfrom.Value.ToString("yyyy,MM,dd"); 

但這給出了這樣的錯誤:Failed to retrieve data from the data base

我使用VS2010,C#和水晶報表CRforVS_13_0_5與運行時間引擎的.NET Framework x64的一個nd x32。

回答