I have a VB application that I've converted to DotNet that uses the Office
Web Chart Components to draw graphs. There is apparently an incompatibility
between the OWC10.DLL component and DotNet Interop Services.
The application fails on the following call:
Dim objBinaryData As Object = ChartSpaceObj.GetPicture(FileType,
with the following error:
array was not of the expected type
Apparently DotNet Interop Services doesn't like the variable that OWC10.DLL
is attempting to return, but its returning an "Object". Inside of the
object is a binary array of the form Byte(), but I haven't even gotten to
the point of doing a type conversion on it. It fails when it trys to
receive it as an object. I'm not sure I understand why this is happening.
Is DotNet looking inside of the Object variable and finding something it
doesn't like? Does anyone know of a solution to this problem?