Free Support Forum - aspose.com

ImportArray

I am unable to get the following code to work.

Dim sArray(,) As Object = New Object(,) {}
cells1.ImportobjectArray(sArray(, ), 1, 1)

The message is “array subscript expression missing”.

This seems to be be the code to import a two dimensional object.

I have attempted to import a two dimensional array with the same results.

Is there a problem with the code or with the product?

This is not a problem about your code or the product. It is a problem of VS.net.

The two-dimesion array conversion in VB has problems when using the overloaded methods. And in C#, it works fine. So I create a new method. Please download the latest hotfix and have a try.

And please try the following code:

cells1.ImportTwoDimensionArray(sArray, 1, 1)