Hi,
I have a scenario, where Excel files are uploaded and saved on the server and they need to be parsed by the server side process and loaded into SQL server database tables. Ideally, I would like to use something like this:
Workbook w = Workbook.Load(filePath);
Worksheet ws = w.Worksheets["MyWorksheetName"];
System.Data.DataTable tbl = ws.AsDataTable(); //Desired functionality
After having DataTable instance I would use SqlBulkCopy to load data to the database tables.
Is there any way of exporting data within worksheet as table without iterating through each row and cell?
I have a solution utilizing Microsof ACE (Microsoft.ACE.OLEDB.12.0) driver, but due to policies I cannot install it on the server.
Thanks, I will appreciate your response.
Jerzy
Currently, the only way to populate a data table with the contents of a worksheet is manually by iterating over each row and cell. I have forwarded this post to the Developer Support Manager to create a feature request on your behalf.
Hello Jerzy.
I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI13070049.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support