Addin Field

R

Rich Lawrence

Hi,
I am trying to use the ADDIN Field typ eto create a bibliography using a
VSTO C# application. I can create the field and put information into the
Field's Code (The part that is shaded when field codes are turned on) and can
add information into the Data property.
I am having trouble creating the fields Result. If I try to add text to the
result property then the text is just inserted after the field. If I then
check the value of Result I find that it is null. So when I select the field
with field codes switched off nothing is highlighted. I am trying to get my
bibliography to work in a similar way to the Table of Contents feature in
Word.

Any suggestions?

Regards

Rich Lawrence
 
J

joelfinkle

Rich Lawrence said:
Hi,
I am trying to use the ADDIN Field typ eto create a bibliography using a
VSTO C# application. I can create the field and put information into the
Field's Code (The part that is shaded when field codes are turned on) and can
add information into the Data property.
I am having trouble creating the fields Result. If I try to add text to the
result property then the text is just inserted after the field. If I then
check the value of Result I find that it is null.

I haven't found any way of doing this, I just spent much of the morning
searching for the same issue. I've seen references that say to create the
field as some other type first, but this does not work: as soon as the type
is changed to ADDIN, the result text disappears.

The frustrating thing is that at least one vendor has managed to make this
work: Thomson's EndNote and Reference Manager products do exactly what you
are trying to do: have different information displayed versus the code value
within the field (in fact, they don't put information in the data property,
they just tack more info into the field code text).

So what's the secret?
 
R

Rich Lawrence

I gave up trying to use the ADDIN field in the end. I converted my field to a
DOCVARIABLE field and handled it that way.

I have seen Endnote's use of the ADDIN field and thats where I orginially
got my idea for using the ADDIN fields for.
 
J

joelfinkle

I'm not ready to give up, and a DOCVARIABLE won't work for me:
I need formatting, and perhaps other fields such as PRINT in my 'result' of
an ADDIN field. Now if you could store RTF-style data in a property or
docvariable, there'd be a lot of cool things you could do with Word.
 

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