crystal report 9 的formula問題 |
尚未結案
|
yabula
初階會員 發表:47 回覆:117 積分:42 註冊:2002-10-02 發送簡訊給我 |
請教各位前輩:
小弟使用delphi 7 與crystal report 9 ,想要傳入一個字串帶入到formula,在vcl 8和8.5都沒有問題,但是用到vcl 9卻會產生錯誤,我試過help的範例兩種方式來做,執行到formula...text 那行都會出現錯誤,不知道是哪寫錯
(1)
Crpe1.ReportName := 'C:\Company.rpt';
Crpe1.Formulas.Name := 'FormulaOne';
Crpe1.Formulas.Item.Formula.Text := 'test';
Crpe1.execute; (2)
Crpe1.ReportName := 'C:\Company.rpt';
Crpe1.FormulaByName('FormulaOne').Formula.Text := 'test';
Crpe1.execute;
|
hahalin
版主 發表:295 回覆:1698 積分:823 註冊:2002-04-14 發送簡訊給我 |
>Crpe1.ReportName := 'C:\Company.rpt';
>Crpe1.FormulaByName('FormulaOne').Formula.Text := 'test';
>Crpe1.execute; 建議改成組合參數欄位到FORMULA 傳遞參數到參數欄位的用法: Crpe1.ParamFields.Items[0].currentvalue:='test'; There is a raising fire in my heart tonight,growing higher and higher in my soul
I want to ride on the silver dove far into the night,till I make you take me on your mighty wing,take me on your mighty wing to cross the sky
|
yabula
初階會員 發表:47 回覆:117 積分:42 註冊:2002-10-02 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |