使用Worktop或文字編輯器編輯現有Report.cfg檔案的步驟。
您必須聯機工作才能編輯Report.cfg檔案。 要聯機工作,請在Worktop中按一下右鍵標題欄,然後按一下Work Online。
如果Report.cfg檔案中的Allow Report Regeneration參數設為True,當您對該檔案進行變更並將該檔案儲存回伺服器時, Report會自動重新產生該集中的報表。 雖然會重新產生報表,但不會透過電子郵件重新傳送報表。 如需執行此動作的步驟,請參閱依電子郵件重新傳送報表。
您可以從Worktop編輯現有的Report.cfg,或使用文字編輯器編輯。
使用Worktop的Reports頁簽編輯Report.cfg檔案可以僅編輯檔案中已存在的參數、向量和向量項。 如果需要將參數或向量添加到檔案中,必須使用文本編輯器(如記事本)對其進行編輯。
您必須聯機工作才能從Worktop編輯Report.cfg。
在Data Workbench的Reports標籤中,選取您要設定之報表集的子資料夾(標籤或下拉式子目錄)。
按一下「Report.cfg」。此報表集的Report.cfg參數隨即顯示。
視需要編輯設定參數。 如需這些參數的相關資訊,請參閱Report.cfg參數。
以滑鼠右鍵按一下參數頂端的Report.cfg (modified),然後按一下Save to*< server location>*以儲存檔案。
開啟Reports Manager,方法是在工作區內按一下滑鼠右鍵,然後按一下Admin > Profile > Reports Manager。
按一下報表集的資料夾。
按一下右鍵此報告集Report.cfg旁的複選標籤,然後按一下Make Local。
在User欄中,以滑鼠右鍵按一下此報表集Report.cfg旁的勾號,然後按一下Open > in Notepad。 將開啟Report.cfg檔案。
設定報表集中顯示的範例Report.cfg預設僅包含Report.cfg檔案中包含的參數。 以下示例包括可用於Report.cfg檔案的所有參數,這些參數可用作參數項的模型:
Attachments = vector: 1 items
0 = Attachment:
FileName = string: c:\\myimage.jpg
Content Type = string: image/jpeg
Alert Threshold = int: 0
Allow Report Regeneration = bool: true
Color Set = int: 1
Command To Execute = string:
Default Excel Template = string:
Dimension Name = string:
Email Only If Perfect = bool: false
End Date = string:
Every = string: month
Excel Watchdog Timeout (seconds) = double: 300.0
Filter Formula = string:
Gamma Correction = double: 1
Hide Logos = bool: false
Lookup File = string:
Mail Report = MailReport:
Body XSL Template = string:
Recipients = vector: 0 items
SMTP Server = SmtpServerInfo:
Address = string:
Password = string:
User = string:
Sender Address = string:
Sender Name = string:
Subject = string:
Notification Only = bool: false
Output Root = string:
Report Types = vector: 3 items
0 = string: thumbnail
1 = string: png
2 = string: excel
Start Date = string: 7/1/06 19:16 EDT
Thumbnail X = int: 240
Thumbnail Y = int: 180
Top N Metric = string:
Top N Value = int: 0
Use Local Sample Only = bool: false
Workspace Path = string:
視需要編輯設定參數。 如需這些參數的相關資訊,請參閱Report.cfg參數。
儲存並關閉檔案。
在Reports Manager中,按一下右鍵Report.cfg檔案的User列中的複選標籤,然後選擇Save to*< profile name>*。