Hi @Krishankumar6401,
If you're asking how to create an .xlsx workbook programmatically, then you may be interested in the following resources:
- https://github.com/EricWhiteDev/Open-Xml-PowerTools
- https://github.com/OfficeDev/Open-XML-SDK
- https://video2.skills-academy.com/en-us/office/open-xml/open-xml-sdk
These are libraries and documentation for creating and manipulating Office Open XML documents using C# (or VB.net) and .Net. There are other libraries and tools out there but these are widely used.
For specific instructions on how to convert a .csv to .xlsx besides having Excel do it, the Open XML SDK does not contain a function for such conversion and I don't think the PowerTools does either. You would need to find another third party library to help with that or do the work yourself using something like the Open XML SDK.
The following StackOverflow thread contains some discussion on this:
I hope this helps.
Best regards,
Tom Jebo
Sr Escalation Engineer
Microsoft Open Specifications Support