Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Peter Berg
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

I include a large XML table formatted by XSL and it works fine, but now I
want to combine this with "Heading Rows Repeat", and this does not work. The
table looses the supplementary headings everytime F9 is pressed.
  #2   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi ?B?UGV0ZXIgQmVyZw==?=,

I include a large XML table formatted by XSL and it works fine, but now I
want to combine this with "Heading Rows Repeat", and this does not work. The
table looses the supplementary headings everytime F9 is pressed.

IncludeText is a field. F9 updates the field. All editing and almost all
formatting applied to a field will be lost when a field is updated. you can try
adding the following switch to the IncludeText field code, but no guarantees it
will work for this particular setting:
\* MergeFormat

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #3   Report Post  
Posted to microsoft.public.word.tables
Peter Berg
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Thank you Cindy for your answer, but sorry, it can not be the solution. You
see, my work depends in a very high degree upon the MergeFormat. All the
extra formating like bold and text size has been remembered, but not the
heading information. I belive, it is a Word error, but perhaps there is a
work around?

"Cindy M -WordMVP-" wrote:

Hi ?B?UGV0ZXIgQmVyZw==?=,

I include a large XML table formatted by XSL and it works fine, but now I
want to combine this with "Heading Rows Repeat", and this does not work. The
table looses the supplementary headings everytime F9 is pressed.

IncludeText is a field. F9 updates the field. All editing and almost all
formatting applied to a field will be lost when a field is updated. you can try
adding the following switch to the IncludeText field code, but no guarantees it
will work for this particular setting:
\* MergeFormat

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #4   Report Post  
Posted to microsoft.public.word.tables
Robert
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Peter,

I tried to find a solution to this problem about 2 years ago, and couldn't
find one. You are correct, this is a bug, and Microsoft knows it but won't
fix it. Let me know if you find a work around.

Robert

"Peter Berg" wrote:

Thank you Cindy for your answer, but sorry, it can not be the solution. You
see, my work depends in a very high degree upon the MergeFormat. All the
extra formating like bold and text size has been remembered, but not the
heading information. I belive, it is a Word error, but perhaps there is a
work around?

"Cindy M -WordMVP-" wrote:

Hi ?B?UGV0ZXIgQmVyZw==?=,

I include a large XML table formatted by XSL and it works fine, but now I
want to combine this with "Heading Rows Repeat", and this does not work. The
table looses the supplementary headings everytime F9 is pressed.

IncludeText is a field. F9 updates the field. All editing and almost all
formatting applied to a field will be lost when a field is updated. you can try
adding the following switch to the IncludeText field code, but no guarantees it
will work for this particular setting:
\* MergeFormat

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #5   Report Post  
Posted to microsoft.public.word.tables
Robert
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Cindy,

There are many linked tables in my document, and it is very time consuming
to locate each one in the document, and reset the "heading rows repeat"
setting. Is there a macro that could do this automatically for all tables in
the document.

Thank you.

Robert

"Cindy M -WordMVP-" wrote:

Hi ?B?UGV0ZXIgQmVyZw==?=,

I include a large XML table formatted by XSL and it works fine, but now I
want to combine this with "Heading Rows Repeat", and this does not work. The
table looses the supplementary headings everytime F9 is pressed.

IncludeText is a field. F9 updates the field. All editing and almost all
formatting applied to a field will be lost when a field is updated. you can try
adding the following switch to the IncludeText field code, but no guarantees it
will work for this particular setting:
\* MergeFormat

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)




  #6   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi Robert,

There are many linked tables in my document, and it is very time consuming
to locate each one in the document, and reset the "heading rows repeat"
setting. Is there a macro that could do this automatically for all tables in
the document.

Yes, this should be possible. Sample code to set the first row of each table to
repeat:

Sub SetHeadingRows()
For each tbl in ActiveDocument.Tables
tbl.Rows(1).HeadingFormat = True
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #7   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi Robert,

I tried to find a solution to this problem about 2 years ago, and couldn't
find one. You are correct, this is a bug, and Microsoft knows it but won't
fix it.

Did Microsoft say it was a bug, or that it's workign "as designed"?
MergeFormat doesn't take everything into account, just certain formatting
aspects. You may or may not agree with the design, but it's only a bug if it's
not working as it was designed :-)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

  #8   Report Post  
Posted to microsoft.public.word.tables
Robert
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Cindy,

I think they said something to the effect of it being recognized as a
product "limitation", and that they knew it should be fixed, and that they
have had requests for it to be fixed, but that the demand wasn't high enough
to justify adding it to their fix/improvements list.

Robert

"Cindy M -WordMVP-" wrote:

Hi Robert,

I tried to find a solution to this problem about 2 years ago, and couldn't
find one. You are correct, this is a bug, and Microsoft knows it but won't
fix it.

Did Microsoft say it was a bug, or that it's workign "as designed"?
MergeFormat doesn't take everything into account, just certain formatting
aspects. You may or may not agree with the design, but it's only a bug if it's
not working as it was designed :-)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


  #9   Report Post  
Posted to microsoft.public.word.tables
Robert
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Thank you.

"Cindy M -WordMVP-" wrote:

Hi Robert,

There are many linked tables in my document, and it is very time consuming
to locate each one in the document, and reset the "heading rows repeat"
setting. Is there a macro that could do this automatically for all tables in
the document.

Yes, this should be possible. Sample code to set the first row of each table to
repeat:

Sub SetHeadingRows()
For each tbl in ActiveDocument.Tables
tbl.Rows(1).HeadingFormat = True
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #10   Report Post  
Posted to microsoft.public.word.tables
Peter Berg
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

I have tryed your suggestion, but receives an error saying: "Cannot access
individual rows in this collection because the table has vertically merged
cells"?

Thanks anyway, Peter


"Cindy M -WordMVP-" wrote:

Hi Robert,

There are many linked tables in my document, and it is very time consuming
to locate each one in the document, and reset the "heading rows repeat"
setting. Is there a macro that could do this automatically for all tables in
the document.

Yes, this should be possible. Sample code to set the first row of each table to
repeat:

Sub SetHeadingRows()
For each tbl in ActiveDocument.Tables
tbl.Rows(1).HeadingFormat = True
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)




  #11   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi ?B?Um9iZXJ0?=,

I think they said something to the effect of it being recognized as a
product "limitation", and that they knew it should be fixed, and that they
have had requests for it to be fixed, but that the demand wasn't high enough
to justify adding it to their fix/improvements list.

Ahhh. OK. I'll put that on my "nag" list g

Cindy Meister

  #12   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi ?B?UGV0ZXIgQmVyZw==?=,

I have tryed your suggestion, but receives an error saying: "Cannot access
individual rows in this collection because the table has vertically merged
cells"?

"Vertically merged cells" means that not every row / column has the same
number of cells (some have been selected and merged into a single cell).

Hmmm. Since you can set the HeaderRows in the user interface, it ought to be
possible using a macro. We just have to out-smart Word...

See if this does the job:

Sub SetHeaderRowsWithMergedCells()
Dim tbl As Word.Table

For Each tbl In ActiveDocument.Tables
tbl.Select
Selection.Cells(1).Select
Selection.Expand wdRow
Selection.Rows.HeadingFormat = True
Next
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

  #13   Report Post  
Posted to microsoft.public.word.tables
Peter Berg
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Thank you, Cindy. You solved my problem! I am very impressed :-)

Just one thing further, I have search for a book describing this sort of
problems and more generally VBA in Word and Excel down to objects and
methods, do you have a good one, you use yourself?

Best regards, Peter

"Cindy M -WordMVP-" wrote:

Hi ?B?UGV0ZXIgQmVyZw==?=,

I have tryed your suggestion, but receives an error saying: "Cannot access
individual rows in this collection because the table has vertically merged
cells"?

"Vertically merged cells" means that not every row / column has the same
number of cells (some have been selected and merged into a single cell).

Hmmm. Since you can set the HeaderRows in the user interface, it ought to be
possible using a macro. We just have to out-smart Word...

See if this does the job:

Sub SetHeaderRowsWithMergedCells()
Dim tbl As Word.Table

For Each tbl In ActiveDocument.Tables
tbl.Select
Selection.Cells(1).Select
Selection.Expand wdRow
Selection.Rows.HeadingFormat = True
Next
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


  #14   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi ?B?UGV0ZXIgQmVyZw==?=,

I have search for a book describing this sort of
problems and more generally VBA in Word and Excel down to objects and
methods, do you have a good one, you use yourself?

This isn't very modest... Besides Word's VBA Help files, I mostly use
the book I wrote together with three other MVPs :-) It's in German, from
MS Press: Word-Programmierung, das Handbuch.

For the English-speaking people, I usually recommend the Word
2000 VBA Programmer's Reference from WROX.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)

  #15   Report Post  
Posted to microsoft.public.word.tables
Peter Berg
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Thank you again !

"Cindy M -WordMVP-" wrote:

Hi ?B?UGV0ZXIgQmVyZw==?=,

I have search for a book describing this sort of
problems and more generally VBA in Word and Excel down to objects and
methods, do you have a good one, you use yourself?

This isn't very modest... Besides Word's VBA Help files, I mostly use
the book I wrote together with three other MVPs :-) It's in German, from
MS Press: Word-Programmierung, das Handbuch.

For the English-speaking people, I usually recommend the Word
2000 VBA Programmer's Reference from WROX.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbering of headings starting at Heading 2 Kamilla Winther Page Layout 3 March 27th 06 09:42 AM
repeat heading rows in table gailw Tables 1 March 23rd 06 05:15 PM
Table Heading Rows Repeat Pauline Tables 2 December 30th 05 03:21 AM
Tables - Heading Rows Repeat Over Sections Chris Beneteau Page Layout 2 October 11th 05 07:10 PM
Heading Rows Repeat Problem Mr Steve Tables 1 August 23rd 05 10:47 PM


All times are GMT +1. The time now is 02:16 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"