Index field spacing issues between name and page numbers

K

Karthik.SK

Am creating Indexing in Word with XE field codes like below.

---------------------------------------------------------------------
markEntry = string.Format("XE \"{0}\" ", txt);

Word.Field iField =
_wordDoc.Application.Selection.Fields.Add(_wordDoc.Application.Selection.Range,
ref fieldType, ref markEntry, ref objTrue);

---------------------------------------------------------------------

In my document template i created index with formats as "From template" ,
Tableader as "dots" and columns
as "3" indented. But in the final output i get like below

Abbot,Elizabethdisosa,MD31,45,567,767

I have many of my index entries in the document which has a tab leader dot
between the name and the page number they occur. But in few data like above
there is no tab leader displayed between name and page numbers. seems to be
because the name is so long for the column.Please guide me if i am missing
anything here. Also please assist me whther i have an option of selecting the
column width for index?
 
P

Peter T. Daniels

In the paragraph style for the index entries, move the right margin
somewhat to the left of the right-tab marker that the page numbers
align with in the index entry. (So the page number actually aligns
_beyond_ the right margin of the paragraph).

If you have a Section Break before your index, you can adjust the
column widths just as in any Section in columns. You don't appear to
have a \c switch in your index field, so you don't need to worry about
it interfering with your own setting.
 
D

Doug Robbins - Word MVP

That is normal behaviour if the length of the entry exceeds the space
available before the tab stop.

After creating the index, you may be able to reduce the space between the
columns and then modify the position of the tab stops, but you may have to
go to a two column layout.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top