我已经设置了一个数据库视图。当用户将视图中的数据导入 Word 2010 时,其格式与在数据库中的格式相同,如下所示:
-------------------------------------------------------------
|workorder |customer |performed activity |
-------------------------------------------------------------
|12345 |Client foo|activity foo |
|67890 |Client bar|activity bar |
-------------------------------------------------------------
但我希望它像这样显示:
-------------------------------------------------------------
client name: Client foo
workorder: 12345
performed activity: activity foo
-------------------------------------------------------------
-------------------------------------------------------------
client name: Client bar
workorder: 6789
performed activity: activity bar
-------------------------------------------------------------
我需要以编程方式为每一行执行某个动作序列。每次制作文档时行数都不同。字段的数量及其位置始终相同。