文檔半島外圍網上直營>>FastReport中文文檔>>傳遞自定義 SQL
                傳遞自定義 SQL
報告可能包含使用數據向導(通過 "數據|添加數據源... "菜單)添加的數據源。有時需要從應用程序中向該數據源傳遞自定義 SQL。為此,請使用以下代碼:
using FastReport.Data;
report1.Load(...); 
// do it after loading the report, before running it
// find the table by its alias
TableDataSource table = report1.GetDataSource("MyTable") as TableDataSource;
table.SelectCommand = "new SQL text";
report1.Show();
	點擊復制
如需下載fastreport最新試用版,請點產品名跳轉產品下載頁>>

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網安備
            50010702500608號
渝公網安備
            50010702500608號
             
            
 客服熱線
客服熱線