Click here to Skip to main content
16,019,263 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to read/extract data from .xltm file in c# into a dataset

As for .xls and for .xlsx we use
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + flg.FileName + ";Extended Properties='Excel 8.0;HDR=Yes;'"
and we can easily get data from both extensions.
But now i want to extract data from .xltm

Please help me.
Posted

1 solution

You will need to use the Excel Interop assembly which is part of the Microsoft Office API. There are plenty of articles/samples on using the Excel Interop assembly. Here is one from Microsoft which should help you get started:

How to: Access Office Interop Objects by Using Visual C# Features (C# Programming Guide)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900