Status | ID | Priority | Type |
Closed | 37312 | Major | Question |
Profile | Reply |
gabossoloClient | Hi -- Could please help me the how to create an import Schema for ExcelDataSource? |
User | Description | Posted On |
MariyaVoytovichAgent | Hello gabossolo! The code below shows an example of importing data from Excel. public void ImportShippersFromExcel() ISettings settings = new ImportSettings(); ISchema schema = new Schema(); const string tableName = "Shippers"; shipperTypeMap.KeyMemberName = "Oid"; shipperTypeMap.MemberMapping.Add(new MemberMap(shipperTypeInfo.FindMember("Name").Name, "CompanyName")); schema.TypeMapping.Add(shipperTypeMap); const string sourcePath = "Northwind.xls"; IOperation operation = new ImportOperation(Application); // Act } Feel free to contact us if you need further assistance or have additional questions. Regards, |