使用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>*保存文件。
右键单击工作区,然后单击Admin > Profile > Reports Manager以打开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 toprofile name>。