Hi You need to use Open XML (http://msdn.microsoft.com/en-us/library/ aa338205.aspx) or Office XML / XSLT (http://www.eggheadcafe.com/ tutorials/aspnet/6e1ae1a8-8285-4b2a-a89b-fafc7668a782/aspnet-download- as-wor.aspx) to write an xlsx file.
An easier way is to use the Aspose.Cells component though. Cheers Jared On 22 Apr, 03:47, Guru Kodlekere <[email protected]> wrote: > Hello, > > Does any one know, how to read and write a xlsx file in c#. > > I did it in the same way, as we used to write normal excel file. > > Then, later when i tried to open the file, it shows file is ot in correct > format or corrupted. > > Please let me know, if ay one knows regarding xlsx file writing and readig > in c# > > Thanks > > -- > Regards > > Guru
