PDA

Click to See Complete Forum and Search --> : [2.0] Create an empty excel document


JenniferBabe
Mar 21st, 2007, 11:43 AM
Hi all. I'm trying to create an empty excel document and then add some simple data to it. I'm finding a lot of article about adding data to an excel document but I'm apparently getting some difficulties in creating an empty excel document. After searching for a while I wondered if I could create it as would normally do to a text file e.g.

File.Create(@"c:\test.xls",1024);


I tried but when I opened it I got the alert that "cannot read file". Could anyone help me as to how to create an empty excel document?

Jennifer

AIS4U
Mar 21st, 2007, 03:21 PM
I think these two links might help you.

http://support.microsoft.com/kb/302084

http://www.codeproject.com/useritems/Excel_Application_in_C_.asp

Good Luck

JenniferBabe
Mar 21st, 2007, 10:25 PM
Thank you very much. I got it to work! *s*

Jennifer.