Load data from excel file


Author
Message
Chan
Chan
Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)Advanced StrataFrame User (723 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

How could I load data excel into BO?



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Well, this is obviously not a native function of the BO, so you will need to convert the Excel document into XML and then you can use the ADO.NET DataTable command to read in the XML document and finally you can use the CopyDataFrom on the BO to bring the data in in a known format.

I recommend using the MSOffice Interop classes to open and read the Excel document and dump it into an XML format.  Once this is done you can bring it into a DataTable which can then be brought into the BO.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I thought there was a ADO.NET driver for excel (there was for ADO). If there is, you could just open excel via ADO.NET. As I recall the excel drivers are finicky.
Kari Paukku
Kari Paukku
StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)
Group: Forum Members
Posts: 65, Visits: 820
Hi,

we had the same type of problem (Excel to Oracle) and in the end decided to use a commercial tool/component from Syncfusion (http://www.syncfusion.com/products/xlsio/windows/default.aspx) together with SF in a VB.Net environment. That solution worked fine for us.

Kari

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search