本人嘗試使用R-SLP008-CE 列印學生學習概覽,在其他學習經歷內是顯示學生的課外活動紀錄,但是格式不太合適,每個項目距離太遠 例如 ______________________ 音樂學會 Muisic Club _______________________ 視覺藝術學會 Visual Arts 請問可否透過修改程式以達至以下效果. ______________________ 音樂學會 Muisic Club_____________ 視覺藝術學會 Visual Arts 這是有關程式{@prog_short_txt} select {?printLanguage} case 'chinese': if ({?accessToEngOrChiContent} = 't') then ( if isNULL({Command.ch_activity}) or {Command.ch_activity}='' then (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ') +{Command.bi_prog_short_ch_des} else (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ') + {Command.bi_prog_short_ch_des} ) else ( (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ') +{Command.prog_short_ch_des} ) case 'english': if ({?accessToEngOrChiContent} = 't') then ( if isNULL({Command.en_activity}) or {Command.en_activity}='' then (if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.bi_prog_short_en_des} else (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.bi_prog_short_en_des} ) else ( (if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des} ) case 'both': ((if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.prog_short_ch_des})+chr(13)+((if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des}) default: ((if (isNULL({Command.ch_activity}) or {Command.ch_activity}='') then '' else {Command.ch_activity}+' ')+{Command.prog_short_ch_des})+chr(13)+((if (isNULL({Command.en_activity}) or {Command.en_activity}='') then '' else {Command.en_activity}+' ')+{Command.prog_short_en_des}) {@prog_long_txt} select {?printLanguage} case 'chinese': if ((isnull({Command.long_chi_des}) = true or {Command.long_chi_des} = '') and {?accessToEngOrChiContent} = 't') then {Command.long_en_des} else {Command.long_chi_des} case 'english': if ((isnull({Command.long_en_des}) = true or {Command.long_en_des} = '') and {?accessToEngOrChiContent} = 't') then {Command.long_chi_des} else {Command.long_en_des} case 'both': {Command.long_chi_des}+chr(13)+{Command.long_en_des} default: {Command.long_chi_des}+chr(13)+{Command.long_en_des} 謝謝幫忙.
老師,請參考以下, 需要 修改 2 個 Sub-Report, ole.rpt,ole2.rpt。 打開 Sub-Report 後, 會見到 公式 {@prog_short_txt} {@prog_long_txt} 的行距 比較闊, 需要 人手拉位, 收窄行距。 並且,將橫線 刪去, 最後,不剔選 "Can Grow" (向下伸延)。
老師,請參考以下, 之前有類似的 SQL, 抽取 學生的課外活動 ECA的資料由websams 系統匯入eclass https://forum.hkedcity.net/index.php?threads/extract-students-services-and-activiy-for-eclass.48218/
謝謝轉寄以往有關資料, 但是文件的SQL不能執行,不知道是否要修改. select a.schyear, a.duration, '#' || s.regno 'RegNo', c.ch_des 'Activities/Services Name', d.ch_des 'Post', e.ch_des 'Performance', (case when a.naatype='E' then 'Activities' when a.naatype='S' then 'Services' end) 'Type' from wsadmin.vw_stu_lateststudent s join wsadmin.tb_naa_studentnaa b on s.suid=b.suid and s.stuid=b.stuid join wsadmin.tb_naa_naaoffered a on a.suid=b.suid and a.naaofferedid=b.naaofferedid and s.schyear=a.schyear left outer join wsadmin.tb_hse_common c on a.suid=c.suid and a.naacode=c.code_id and ((c.tb_id='ECACD' and a.naatype='E') or (c.tb_id='SEVPST' and a.naatype='S')) left outer join wsadmin.tb_hse_common d on a.suid=d.suid and b.naapostcode=d.code_id and d.tb_id='ECAPST' left outer join wsadmin.tb_hse_common e on a.suid=e.suid and b.naaperfcode=e.code_id and e.tb_id='ECAPFM' where s.schyear=? and a.naatype in ('E', 'S') order by a.naatype, s.regno