Reputation: 2232
I have setup a database view. When users import the data from the view into Word 2010 it is formatted in the same way as being in the database, like so:
-------------------------------------------------------------
|workorder |customer |performed activity |
-------------------------------------------------------------
|12345 |Client foo|activity foo |
|67890 |Client bar|activity bar |
-------------------------------------------------------------
But I would like it to be displayed like so:
-------------------------------------------------------------
client name: Client foo
workorder: 12345
performed activity: activity foo
-------------------------------------------------------------
-------------------------------------------------------------
client name: Client bar
workorder: 6789
performed activity: activity bar
-------------------------------------------------------------
I need to perform a certain action sequence programmatically for each row. The number of rows is different each time the document is made. The number of fields and their position is always the same.
Upvotes: 1
Views: 3407
Reputation: 2953
Use a Word template with a custom table styles set as default. Any table created in that document, manually or programmatically, will get the desired formating.
I hope this helps.
*Performed on Microsoft Office Word 2007
Upvotes: 3