David
2006-07-29 02:41:01 UTC
Hi all,
I'm using Interop.Word in order to retrieve all paragraph styles of a word
document. However, once I use the code such as:
"object style = document.Paragraphs[i].Style;"
The Visual Studio compiler display:
"Property, indexer, or event 'Style' is not supported by the language; try
directly calling accessor methods
'Microsoft.Office.Interop.Word.Paragraph.get_Style()' or
'Microsoft.Office.Interop.Word.Paragraph.set_Style(ref object)' "
I think it's about managed code and unmanaged code conflict, but I've no
idea how to fix it. Does anyone know how to fix it?
Thanks Forum.
I'm using Interop.Word in order to retrieve all paragraph styles of a word
document. However, once I use the code such as:
"object style = document.Paragraphs[i].Style;"
The Visual Studio compiler display:
"Property, indexer, or event 'Style' is not supported by the language; try
directly calling accessor methods
'Microsoft.Office.Interop.Word.Paragraph.get_Style()' or
'Microsoft.Office.Interop.Word.Paragraph.set_Style(ref object)' "
I think it's about managed code and unmanaged code conflict, but I've no
idea how to fix it. Does anyone know how to fix it?
Thanks Forum.