Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to import data to worksheet cells from different data sources and use tables

$
0
0

This example illustrates how to use the Worksheet.Import method to import data to worksheet cells from different data sources (arrays, lists and data tables), and how to format a range of cells as a table (refer to the How to: Create a Table document to get step-by-step instructions).

Worksheet extensions are defined by the WorksheetExtensions class. To enable them, add a reference to the DevExpress.Docs.vX.Y.dll library. Note that distribution of this assembly requires a license to the DevExpress Document Server or the DevExpress Universal Subscription.

Question Comments

Added By: Piotr Tworek at: 5/19/2014 1:12:57 AM    

Hi
Good solution, but you can not import an ArrayList
for example

           Dim ListDataSource As New ArrayList()
           ListDataSource.Add(New Record(1, "Jane", 19))
           ListDataSource.Add(New Record(2, "Joe", 30))
           ListDataSource.Add(New Record(3, "Bill", 15))
           ListDataSource.Add(New Record(4, "Michael", 42))
Any idea?
Regards, Piotr

Added By: Yulia (DevExpress Support) at: 5/19/2014 7:17:16 AM    Hi Piotr,
I have created a separate thread on your behalf to discuss this problem: How to import data to worksheet cells from ArrayList. Please refer to it for further correspondence.Added By: Brian (DevExpress) at: 6/2/2015 7:05:05 AM    In the v15.1 release, the Worksheet.Import method enables you to import ArrayList as suggested. Also there are new Worksheet.Import overloads, please review the Add the capability to import formulas saved in the data table ticket for details. 

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>