B
Bear
I hope Shauna reads this. Just one more oddity about GetCrossReferenceItems
and InsertCrossReference. But maybe you've found a way around it...
You can test this out yourself fairly easily. Create a document with three
Heading 1 paras in it. Type Before in the first, nothing in the second, and
After in the third.
GetCrossReference items will not include the empty para! (If it's a Heading
2 or 3 etc, it will -- it just skips empty Heading 1 paras.)
This means that if I fill a listbox with GetCrossReference, let the user
pick one, and use the listbox index to specify the InsertCrossReference item,
everything after the blank para will be off by one. You try to insert Title 7
and you get Title 6 etc.
I can't think of any efficient way to stop this, or even warn the user that
something's amiss. (Typically it's because a section break gets styled as
Heading 1.)
Any ideas?
Bear
and InsertCrossReference. But maybe you've found a way around it...
You can test this out yourself fairly easily. Create a document with three
Heading 1 paras in it. Type Before in the first, nothing in the second, and
After in the third.
GetCrossReference items will not include the empty para! (If it's a Heading
2 or 3 etc, it will -- it just skips empty Heading 1 paras.)
This means that if I fill a listbox with GetCrossReference, let the user
pick one, and use the listbox index to specify the InsertCrossReference item,
everything after the blank para will be off by one. You try to insert Title 7
and you get Title 6 etc.
I can't think of any efficient way to stop this, or even warn the user that
something's amiss. (Typically it's because a section break gets styled as
Heading 1.)
Any ideas?
Bear