Crystal Report如何ClientQuery的條件?
如下Sample,可以用下列方法來達成:
protected void Button1_Click1(object sender, EventArgs e) //印表程式
{
WebClientQuery1.Excute(Panel1, true); // 處理條件
TextObject memo=(TextObject) CrystalReportSource1.ReportDocument.ReportDefinition.Sections["Section2"].ReportObjects["Text7"]; //取得Crystal Report Section2.Text7
memo.Text = WebClientQuery1.GetText(); //設定Text7.Text
CrystalReportViewer1.RefreshReport(); // 印表
}