Office 2000 PIAs - can't index Fields or Paragraphs

D

David Thielen

Hi;

I built the Word 2000 PIAs and everything in my add-in builds fine (I had
the change some events from event3 to event2) EXCEPT:

Field fld = range.Fields[ind];
gets:
C:\src\AutoTag\AutoTag2000\Framework.cs(1402): Cannot apply indexing with []
to an expression of type 'Microsoft.Office.Interop.Word.Fields'

- and -

Range range = ThisApplication.Selection.Range.Paragraphs[1].Range;
gets:
C:\src\AutoTag\AutoTag2000\Framework.cs(1493): Cannot apply indexing with []
to an expression of type 'Microsoft.Office.Interop.Word.Paragraphs'

The object browser shows a this[int] member for each - but the Fields it
doesn't show any return info and for Paragraphs it shows it returning an int.

How do I access a field and paragraph by index in Word 2000?

thanks - dave
 
P

Peter Huang

Hi,

Currently I am researching the issue and Iwill reply here with more
information as soon as possible.
If you have any more concerns on it, please feel free to post here.


Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang [MSFT]

Hi

I am glad that you have found the solution, if you still have any concern
on this issue, please feel free to post here.

Thanks!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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