Hi,
We were using Aspose with version 5.0 previously. Now we have upgraded to Aspose 8.5.1.0.
As the ImportDataColumn method is deprecated, we have replaced it with ImportData method. The
data is not being propely imported into the excel.
As an example,
Aspose 5.0
columnList As String()
counter As Integer
sheet.Cells.ImportDataColumn(table, True, 0, counter, columnList (counter), False)
Aspose 8.5.1.0
Dim tblOptForcol As New ImportTableOptions
tblOptForcol.IsFieldNameShown = True
tblOptForcol.InsertRows = False
tblOptForcol.ColumnIndexes ={counter}
sheet.Cells.ImportData(table, 0, _counter, tblOptForcol)
The data in the datatable(table) is directly mapped into the sheet without matching the column columnlist(counter).
Please let us know the specifications of the ColumnIndexes that has to be given to the ImportTableOptionsin this case.
Also can you please give the link of the new Aspose Documentation, as it is very difficult to post for every issue we face. Please note we do we have a license.
Thanks,
Varsha