span8
span4
我有一些调查数据产生的统计数据,然后将写入最终报告Microsoft Word文档工作区。但是我有一些问题。
首先,似乎有通过对最终报告传递FME系统属性。即, “fme_feature_type” 和 “fme_type”(见图像1 - 高亮行)。这些都不是在任何作家或读者格式属性选项卡中选择,我已经尝试了一些删除它们包括使用属性管理器,卸妆,守护者和测试者的方式。问题是他们无法显示在工作流程的任何阶段,除了在最后的输出报告。亚搏在线
IMG 1
其次,我有作为需要排序表中的数据的麻烦。我通过传相关属性到属性管理器,排序它们作为我需要(图像2),然后将它们传递给一个MS Word的样式器和一个MS Word的作家。然而,他们随后在最终报告(图片1)分类不同。我不知道如何将它们进行排序,因为我想,或者什么规则确定如何,他们目前正在整理。
IMG 2
最后,我试图模板文件(见图片3)负载,但我在努力理解这如何影响最终输出。到目前为止,似乎,无论文件是我写的只是被添加到模板的结束,而不是用它在所有格式。
IMG 3
对于所有这些问题的任何帮助将是巨大的!这是我第一次使用了微软Word斯泰勒和作家,所以我可能会做一些在这里非常基本的错误,所以我任何提示或技巧真的很感激。
扎克
您是否使用在您的工作流程的AttributeExploder?亚搏在线像格式属性,这种变压器将创建从未曝光的属性特征fme_feature_type和fme_type。您可以启用功能,缓存和检查每个变压器的输出,看看他们是从始发。
顺序的功能被写入由哪些功能输入单词作家的物理顺序控制。使用AttributeManager可能不足以为“排序”,你可能需要使用分拣机,而不是取决于你的工作流程。亚搏在线
在Word中的作家“模板”的含义是从在MS Word“模板”原生意义不同。这会引起混乱,并会出现一个变化,从“模板文件”在FME 2019用于“基本文件”的术语。
在FME,新的数据被附加到基座/模板文件的末尾,并且没有办法来填充用新数据基础/模板在形状类似的方式。作者增加了使用基地fi基本文件le's settings (for example, for headings, fonts, colors, etc.), and saves a new file.
I hope this helps.
Thanks for your reply.I am using an Attribute Exploder, this is to solve another issue I am having regarding transposing a table.Similar issue here: (https://knowledge.safe.com/questions/75631/ms-word-styler-how-to-create-vertical-transposed-t.html)
Is there anyway to transpose the table without an Attribute Exploder, or if not, is there a way to remove the features from these unexposed attributes?
Thanks for the rest of your comments, that's really helpful!
扎克
You're very welcome, I'm glad the information helped.
It is possible to use the AttributeExploder and a Tester to filter out format attributes as described in thistutorial.
Alternatively, if you use the custom FME Hub transformer AttributeTransposer, it may be possible to skip using an AttributeExploder.I have attached a workspace demonstrating the AttributeTransposer approach.
In addition, to demonstrate a possible use of template/base files, instead of ouputting features as a table, I have chosen to write them as paragraphs instead.
To do this, I have specified a special base file in which I modified the Normal style to contain a tab stop at a certain position.In my workspace, I created a new attribute by concatenating the attribute name, a horizontal tab, and attribute value.In the MSWordStyler, I specified the content type as Paragraph and the style to be Normal.
In the output file, because the base file has a tab stop for the style, attribute values are positioned at the tab stop.
你好 Debbie, some very interesting ideas there that I will be sure to check out.I like the thought of outputting certain elements of the report as paragraphs as this is probably more appropriate and I believe there are more customisation options with the Paragraph setting.Thanks for attaching the workspace, I will take a look at that.
One thing probably worth noting is I managed to get around the format attributes problem by using an Attribute Exposer.By explicitly choose to 'reveal' these attributes, it meant I could remove them as normal with an Attribute Manager (or Keeper/Remover) later on so that's another way around that issue.
©2020安全亚搏在线软件公司|法律