線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:4224
推到 Plurk!
推到 Facebook!

請問怎樣才能在 Rave Report 作出這樣的效果?

尚未結案
ericboy
一般會員


發表:17
回覆:22
積分:7
註冊:2004-05-04

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-05-16 03:10:52 IP:61.92.xxx.xxx 未訂閱
請問怎樣才能在 Rave Report 作出這樣的效果? 特別是怎樣控制 Data Component 只列印頭一或頭二的資料?    
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-05-16 06:17:25 IP:218.170.xxx.xxx 未訂閱
你可以試試用兩個dataset對同一個table取資料 第一個dataset下sql 取 select distinct(姓名) from tb 然後兩者用姓名來做關聯 使用master-detail的方式作群組報表
ericboy
一般會員


發表:17
回覆:22
積分:7
註冊:2004-05-04

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-05-17 21:18:23 IP:61.92.xxx.xxx 未訂閱
對不起! 小弟始終不太懂得怎樣做? 可不可以詳細一點或給我一些例子? Thanks. 
webber
初階會員


發表:54
回覆:76
積分:26
註冊:2004-04-20

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-06-20 10:17:46 IP:61.223.xxx.xxx 未訂閱
若資料庫的設計如下 客戶 ----------------------- 流水號 | 姓名 | 地址 電話 ----------------------- 流水號 | 客戶流水號 | 電話 先建一個view: 客戶與第一個電話 select 客戶.流水號 as 客戶流水號, (select min(電話.流水號) from 電話 where 電話.客戶流水號=客戶.流水號) as 第一個電話流水號 from 客戶 再建一個view 客戶4Report select 客戶.流水號,客戶.姓名, 客戶.地址, 電話.電話 from where 客戶.流水號=客戶與第一個電話.客戶流水號 and 電話.流水號=客戶與第一個電話.第一個電話流水號 再建一個view 電話4Report select * from 電話 where 電話.流水號 not in(select 第一個電話流水號 from 客戶與第一個電話) 把「客戶4Report」當作master的dataset來源 再把「電話4Report」當作detail的dataset來源 就可以做出類似的效果 電郵也是以此類推
ericboy
一般會員


發表:17
回覆:22
積分:7
註冊:2004-05-04

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-06-20 12:23:44 IP:61.92.xxx.xxx 未訂閱
首先謝謝 webber  如果我想在 >
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#6 引用回覆 回覆 發表時間:2004-06-20 16:24:54 IP:218.170.xxx.xxx 未訂閱
先看看delphi的範例程式
webber
初階會員


發表:54
回覆:76
積分:26
註冊:2004-04-20

發送簡訊給我
#7 引用回覆 回覆 發表時間:2004-07-19 16:04:15 IP:61.222.xxx.xxx 未訂閱
其實Rave功能應該夠多,可惜文件和教學不夠完整 這個問題在news group找到了正解: Position Mode = pmOverlay from: nevrona.public.rave.developer.delphi.rave subject: How to suppress repeating values ############################################################### Hi, I'm new to RaveReports. I'm trying to print a report with a dataset that has repeating values. This single dataset comes from two joined tables (a master and a detail). A search on Google mentionned using group bands and a Postion of pmOverlay, but I can't seem to figure it out. I came up empty searching through the tips on the Nevrona website. Does anyone have a simple example on how to do this? In other words, I want this (from the Northwind database): CustomerID OrderID EmployeeID OrderDate ALFKI 10643 6 1997-08-25 ALFKI 10692 4 1997-10-03 ALFKI 10702 4 1997-10-13 ALFKI 10835 1 1998-01-15 ALFKI 10952 1 1998-03-16 ALFKI 11011 3 1998-04-09 ANATR 10926 4 1998-03-04 ANATR 10759 3 1997-11-28 ANATR 10625 3 1997-08-08 ANATR 10308 7 1996-09-18 ANTON 10365 3 1996-11-27 ANTON 10573 7 1997-06-19 to look like this: CustomerID OrderID EmployeeID OrderDate ALFKI 10643 6 1997-08-25 10692 4 1997-10-03 10702 4 1997-10-13 10835 1 1998-01-15 10952 1 1998-03-16 11011 3 1998-04-09 ANATR 10926 4 1998-03-04 10759 3 1997-11-28 10625 3 1997-08-08 10308 7 1996-09-18 ANTON 10365 3 1996-11-27 10573 7 1997-06-19 Thank you, -- Alain Quesnel alainsansspam@logiquel.com www.logiquel.com ------------------------------------------------------------ Hello Alain, What you have read is correct, by using the pmOffset in a band it instructs RAVE not to move to a New Line once the band has been printed. Try the following: 1. Create a Band (Not a Data Band) (A). 2. Set the Group Data View your dataview 3. Set the Group Key to the repeating field (i.e. CustomerID) 4. Set Position Mode = pmOverlay 5. Create a Data Band (B) 6. Set the DataView to the same dataview as in step 2 7. Set the controller of (A) = (B) Then add your fields. HTH Regards Trevor Keegan
it1506
初階會員


發表:32
回覆:89
積分:49
註冊:2011-02-16

發送簡訊給我
#8 引用回覆 回覆 發表時間:2011-03-24 13:17:59 IP:59.120.xxx.xxx 未訂閱
rave report 的 band

可以設定群組 , 由 databand 來控制

1.先建好,dataview . 對應你delphi程式的sql
2.新增一個 band ex: band1
3.新增一個 databand ex: databand1
4,在 band1 的bandstyle 裡把 group header 打勾
5,在 band1 的 controlband 選 databand1
6.在band1的 groupkey 選你要群組的欄位, 像是 姓名 電話 住址 (這樣的話,這三個一樣的就會被歸在同一類, 只要一欄不一樣,就會再分一類)
7.可以再新增一個 band ex: band2 , 在 band2 的bandstyle 裡把 group footer 打勾,的 controlband 選 databand1 , groupkey 可以跟band1不一樣. 但一定要比表頭少

第7點不一定要有,
系統時間:2024-03-28 22:38:15
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!