2009年3月27日 星期五

外部資料帶入Crystal Report

參數欄位:

CrystalDecisions.Web.Parameter param = new CrystalDecisions.Web.Parameter();
param.Name = "name"; // 參數欄位ID
param.DefaultValue = "text"; //要帶入的值

this.CrystalReportSource1.Report.Parameters.Add(param);

文字物件:

TextObject to = (TextObject)CrystalReportSource1.ReportDocument.ReportDefinition.ReportObjects["toName"];
to.Text = "text";

沒有留言:

張貼留言