Skip to main content
Solved

Adding a title and a table to a word document

  • October 29, 2024
  • 3 replies
  • 41 views

ruth_h
Contributor
Forum|alt.badge.img+4

Hi there - I have produced a table in a word document using the MSWordStyler and word writer. However I would now like to add a title to the word document above the table and I’m not sure how I do this. I would be grateful for some advice please. Thanks Ruth

Best answer by geomancer

The Microsoft Word Writer writes the features one at a time, in the order in which they are received, so you need to make sure the title is received before the table.

Add an attribute that sets the order you want (so the title gets value 1, the table gets value 2), pass the results of all MSWordStylers to a Sorter (and sort on this attribute), and connect the output of the Sorter to your Microsoft Word Writer.

 

View original
Did this help you find an answer to your question?

3 replies

geomancer
Evangelist
Forum|alt.badge.img+46
  • Evangelist
  • Best Answer
  • October 29, 2024

The Microsoft Word Writer writes the features one at a time, in the order in which they are received, so you need to make sure the title is received before the table.

Add an attribute that sets the order you want (so the title gets value 1, the table gets value 2), pass the results of all MSWordStylers to a Sorter (and sort on this attribute), and connect the output of the Sorter to your Microsoft Word Writer.

 


ruth_h
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 4, 2024

Thanks very much - that worked!


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • November 4, 2024
geomancer wrote:

The Microsoft Word Writer writes the features one at a time, in the order in which they are received, so you need to make sure the title is received before the table.

Add an attribute that sets the order you want (so the title gets value 1, the table gets value 2), pass the results of all MSWordStylers to a Sorter (and sort on this attribute), and connect the output of the Sorter to your Microsoft Word Writer.

 

 Its a good job.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings